diff options
Diffstat (limited to 'tests/test-contrib.t')
-rw-r--r-- | tests/test-contrib.t | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/test-contrib.t b/tests/test-contrib.t index 98acb43..a1e7683 100644 --- a/tests/test-contrib.t +++ b/tests/test-contrib.t @@ -1,6 +1,6 @@ Set vars: - $ CONTRIBDIR="$TESTDIR/../contrib" + $ CONTRIBDIR=$TESTDIR/../contrib Prepare repo-a: @@ -26,7 +26,7 @@ Prepare repo-a: Dumping revlog of file a to stdout: - $ python "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i + $ python $CONTRIBDIR/dumprevlog .hg/store/data/a.i file: .hg/store/data/a.i node: 183d2312b35066fb6b3b449b84efc370d50993d0 linkrev: 0 @@ -58,14 +58,14 @@ Dumping revlog of file a to stdout: Dump all revlogs to file repo.dump: - $ find .hg/store -name "*.i" | sort | xargs python "$CONTRIBDIR/dumprevlog" > ../repo.dump + $ find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump $ cd .. Undumping into repo-b: $ hg init repo-b $ cd repo-b - $ python "$CONTRIBDIR/undumprevlog" < ../repo.dump + $ python $CONTRIBDIR/undumprevlog < ../repo.dump .hg/store/00changelog.i .hg/store/00manifest.i .hg/store/data/a.i @@ -104,12 +104,10 @@ Compare repos: [1] -#if hardlink - Test shrink-revlog: $ cd repo-a - $ hg --config extensions.shrink="$CONTRIBDIR/shrink-revlog.py" shrink - shrinking $TESTTMP/repo-a/.hg/store/00manifest.i (glob) + $ hg --config extensions.shrink=$CONTRIBDIR/shrink-revlog.py shrink + shrinking $TESTTMP/repo-a/.hg/store/00manifest.i reading revs sorting revs writing revs @@ -117,8 +115,8 @@ Test shrink-revlog: new file size: 324 bytes ( 0.0 MiB) shrinkage: 0.0% (1.0x) note: old revlog saved in: - $TESTTMP/repo-a/.hg/store/00manifest.i.old (glob) - $TESTTMP/repo-a/.hg/store/00manifest.d.old (glob) + $TESTTMP/repo-a/.hg/store/00manifest.i.old + $TESTTMP/repo-a/.hg/store/00manifest.d.old (You can delete those files when you are satisfied that your repository is still sane. Running 'hg verify' is strongly recommended.) $ hg verify @@ -129,8 +127,6 @@ Test shrink-revlog: 1 files, 3 changesets, 3 total revisions $ cd .. -#endif - Test simplemerge command: $ cp "$CONTRIBDIR/simplemerge" . |