tests/test-dumprevlog
changeset 11867 20bd477d0e89
parent 11866 c4e2eb4871d7
child 11868 062052b0d737
--- a/tests/test-dumprevlog	Thu Aug 12 20:25:37 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
-#!/bin/sh
-
-CONTRIBDIR=$TESTDIR/../contrib
-
-echo % prepare repo-a
-mkdir repo-a
-cd repo-a
-hg init
-
-echo this is file a > a
-hg add a
-hg commit -m first
-
-echo adding to file a >> a
-hg commit -m second
-
-echo adding more to file a >> a
-hg commit -m third
-
-hg verify
-
-echo
-echo % dumping revlog of file a to stdout
-python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
-echo % dumprevlog done
-
-echo
-echo % dump all revlogs to file repo.dump
-find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
-
-cd ..
-
-mkdir repo-b
-cd repo-b
-hg init
-
-echo
-echo % undumping into repo-b
-python $CONTRIBDIR/undumprevlog < ../repo.dump
-echo % undumping done
-
-cd ..
-
-echo
-echo % clone --pull repo-b repo-c  to rebuild fncache
-hg clone --pull -U repo-b repo-c
-
-cd repo-c
-
-echo
-echo % verify repo-c
-hg verify
-
-cd ..
-
-echo
-echo % comparing repos
-hg -R repo-c incoming repo-a
-hg -R repo-a incoming repo-c
-
-exit 0