##// END OF EJS Templates
fixed missing sorting in test-dumprevlog...
Adrian Buehlmann -
r6516:7a6243bf default
parent child Browse files
Show More
@@ -1,47 +1,47
1 1 #!/bin/sh
2 2
3 3 CONTRIBDIR=$TESTDIR/../contrib
4 4
5 5 mkdir repo-a
6 6 cd repo-a
7 7 hg init
8 8
9 9 echo this is file a > a
10 10 hg add a
11 11 hg commit -m first -d '0 0'
12 12
13 13 echo adding to file a >> a
14 14 hg commit -m second -d '0 0'
15 15
16 16 echo adding more to file a >> a
17 17 hg commit -m third -d '0 0'
18 18
19 19 hg verify
20 20
21 21 echo dumping revlog of file a to stdout:
22 22 python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
23 23 echo dumprevlog done
24 24
25 25 # dump all revlogs to file repo.dump
26 find .hg/store -name "*.i" | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
26 find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
27 27
28 28 cd ..
29 29
30 30 mkdir repo-b
31 31 cd repo-b
32 32 hg init
33 33
34 34 echo undumping:
35 35 python $CONTRIBDIR/undumprevlog < ../repo.dump
36 36 echo undumping done
37 37
38 38 hg verify
39 39
40 40 cd ..
41 41
42 42 echo comparing repos:
43 43 hg -R repo-b incoming repo-a
44 44 hg -R repo-a incoming repo-b
45 45 echo comparing done
46 46
47 47 exit 0
General Comments 0
You need to be logged in to leave comments. Login now