diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-contrib.t | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
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" . |