Skip to content
Snippets Groups Projects
Commit 33e04d3d authored by Augie Fackler's avatar Augie Fackler
Browse files

test-contrib: add a test for shrink-revlog

We only verify the extension runs and that verify passes at the end as
constructing a test repository that would result in a shrink would be
nontrivial.
parent d98af142
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,29 @@
[1]
Test shrink-revlog:
$ cd repo-a
$ hg --config extensions.shrink=$CONTRIBDIR/shrink-revlog.py shrink
shrinking $TESTTMP/repo-a/.hg/store/00manifest.i
reading revs
sorting revs
writing revs
old file size: 324 bytes ( 0.0 MiB)
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
$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
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
1 files, 3 changesets, 3 total revisions
$ cd ..
Test simplemerge command:
$ cp "$CONTRIBDIR/simplemerge" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment