##// 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 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 CONTRIBDIR=$TESTDIR/../contrib
3 CONTRIBDIR=$TESTDIR/../contrib
4
4
5 mkdir repo-a
5 mkdir repo-a
6 cd repo-a
6 cd repo-a
7 hg init
7 hg init
8
8
9 echo this is file a > a
9 echo this is file a > a
10 hg add a
10 hg add a
11 hg commit -m first -d '0 0'
11 hg commit -m first -d '0 0'
12
12
13 echo adding to file a >> a
13 echo adding to file a >> a
14 hg commit -m second -d '0 0'
14 hg commit -m second -d '0 0'
15
15
16 echo adding more to file a >> a
16 echo adding more to file a >> a
17 hg commit -m third -d '0 0'
17 hg commit -m third -d '0 0'
18
18
19 hg verify
19 hg verify
20
20
21 echo dumping revlog of file a to stdout:
21 echo dumping revlog of file a to stdout:
22 python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
22 python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
23 echo dumprevlog done
23 echo dumprevlog done
24
24
25 # dump all revlogs to file repo.dump
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 cd ..
28 cd ..
29
29
30 mkdir repo-b
30 mkdir repo-b
31 cd repo-b
31 cd repo-b
32 hg init
32 hg init
33
33
34 echo undumping:
34 echo undumping:
35 python $CONTRIBDIR/undumprevlog < ../repo.dump
35 python $CONTRIBDIR/undumprevlog < ../repo.dump
36 echo undumping done
36 echo undumping done
37
37
38 hg verify
38 hg verify
39
39
40 cd ..
40 cd ..
41
41
42 echo comparing repos:
42 echo comparing repos:
43 hg -R repo-b incoming repo-a
43 hg -R repo-b incoming repo-a
44 hg -R repo-a incoming repo-b
44 hg -R repo-a incoming repo-b
45 echo comparing done
45 echo comparing done
46
46
47 exit 0
47 exit 0
General Comments 0
You need to be logged in to leave comments. Login now