mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
fa1c4e5ebe
Many tests didn't change back from subdirectories at the end of the tests ... and they don't have to. The missing 'cd ..' could always be added when another test case is added to the test file. This change do that tests (99.5%) consistently end up in $TESTDIR where they started, thus making it simpler to extend them or move them around.
56 lines
840 B
Perl
56 lines
840 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
|
|
|
|
Should be empty:
|
|
|
|
$ ls .hg/store
|
|
|
|
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
|
|
branch
|
|
dirstate
|
|
hgrc
|
|
requires
|
|
store
|
|
|
|
Should be empty:
|
|
|
|
$ ls .hg/store
|
|
|
|
$ cd ..
|