mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
0ca4acd250
Summary: Add the `storerequirements` feature to the repo. This means the store may have a `requires` file, and clients must check it for any store features that they may be missing. This allows new requirements to be added that affect the store when the repo is shared. Currently there are no store features. This commit adds support for the feature, and only new repos have the requirement added. A future commit will optimistically upgrade repos to include the requirement. Reviewed By: quark-zju Differential Revision: D9699156 fbshipit-source-id: 95c1ab6973d44c02abc69b78a15311fe6a8696fd
57 lines
855 B
Perl
57 lines
855 B
Perl
Create an empty repo:
|
|
|
|
$ hg init a
|
|
$ cd a
|
|
|
|
Try some commands:
|
|
|
|
$ hg log
|
|
$ hg grep wah
|
|
[1]
|
|
$ hg manifest
|
|
$ hg verify
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
0 files, 0 changesets, 0 total revisions
|
|
|
|
Check the basic files created:
|
|
|
|
$ ls .hg
|
|
00changelog.i
|
|
requires
|
|
store
|
|
treestate
|
|
|
|
Should be empty:
|
|
|
|
$ ls .hg/store
|
|
requires
|
|
|
|
Poke at a clone:
|
|
|
|
$ cd ..
|
|
$ hg clone a b
|
|
updating to branch default
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ cd b
|
|
$ hg verify
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
0 files, 0 changesets, 0 total revisions
|
|
$ ls .hg
|
|
00changelog.i
|
|
hgrc
|
|
requires
|
|
store
|
|
treestate
|
|
|
|
Should be empty:
|
|
|
|
$ ls .hg/store
|
|
|
|
$ cd ..
|