[PATCH 6 of 6] test-contrib: add a test for shrink-revlog
Benoit Boissinot
bboissin at gmail.com
Fri Apr 29 09:02:01 CDT 2011
On Fri, Apr 29, 2011 at 3:50 PM, Augie Fackler <durin42 at gmail.com> wrote:
> # HG changeset patch
> # User Augie Fackler <durin42 at gmail.com>
> # Date 1304084954 18000
> # Node ID d0ea27466f1b010251b3250feb3634b425db0915
> # Parent d98af1420930ebe31a90a51fa2949852f1ffe004
> test-contrib: add a test for shrink-revlog
>
Maybe add a comment that we just test if the extension is running, not
that it actually shrinks. Please run hg verify afterwards too (as we
recommend the user to do).
Benoit
> diff --git a/tests/test-contrib.t b/tests/test-contrib.t
> --- a/tests/test-contrib.t
> +++ b/tests/test-contrib.t
> @@ -104,6 +104,23 @@
> [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.)
> + $ cd ..
> +
> Test simplemerge command:
>
> $ cp "$CONTRIBDIR/simplemerge" .
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
More information about the Mercurial-devel
mailing list