##// END OF EJS Templates
tests: use positive revision numbers in test-strip-cross.t...
Martin von Zweigbergk -
r43178:f78f7448 default
parent child Browse files
Show More
@@ -1,143 +1,143 b''
1 test stripping of filelogs where the linkrev doesn't always increase
1 test stripping of filelogs where the linkrev doesn't always increase
2
2
3 $ echo '[extensions]' >> $HGRCPATH
3 $ echo '[extensions]' >> $HGRCPATH
4 $ echo 'strip =' >> $HGRCPATH
4 $ echo 'strip =' >> $HGRCPATH
5 $ hg init orig
5 $ hg init orig
6 $ cd orig
6 $ cd orig
7 $ commit()
7 $ commit()
8 > {
8 > {
9 > hg up -qC null
9 > hg up -qC null
10 > count=1
10 > count=1
11 > for i in "$@"; do
11 > for i in "$@"; do
12 > for f in $i; do
12 > for f in $i; do
13 > echo $count > $f
13 > echo $count > $f
14 > done
14 > done
15 > count=`expr $count + 1`
15 > count=`expr $count + 1`
16 > done
16 > done
17 > hg commit -qAm "$*"
17 > hg commit -qAm "$*"
18 > }
18 > }
19
19
20 2 1 0 2 0 1 2
20 2 1 0 2 0 1 2
21
21
22 $ commit '201 210'
22 $ commit '201 210'
23 $ commit '102 120' '210'
23 $ commit '102 120' '210'
24 $ commit '021'
24 $ commit '021'
25 $ commit '201' '021 120'
25 $ commit '201' '021 120'
26 $ commit '012 021' '102 201' '120 210'
26 $ commit '012 021' '102 201' '120 210'
27 $ commit 'manifest-file'
27 $ commit 'manifest-file'
28 $ commit '102 120' '012 210' '021 201'
28 $ commit '102 120' '012 210' '021 201'
29 $ commit '201 210' '021 120' '012 102'
29 $ commit '201 210' '021 120' '012 102'
30 $ HGUSER=another-user; export HGUSER
30 $ HGUSER=another-user; export HGUSER
31 $ commit 'manifest-file'
31 $ commit 'manifest-file'
32 $ commit '012' 'manifest-file'
32 $ commit '012' 'manifest-file'
33 $ cd ..
33 $ cd ..
34 $ hg clone -q -U -r -1 -r -2 -r -3 -r -4 -r -6 orig crossed
34 $ hg clone -q -U -r 4 -r 6 -r 7 -r 8 -r 9 orig crossed
35 $ cd crossed
35 $ cd crossed
36 $ hg debugindex --manifest
36 $ hg debugindex --manifest
37 rev linkrev nodeid p1 p2
37 rev linkrev nodeid p1 p2
38 0 0 6f105cbb914d 000000000000 000000000000
38 0 0 6f105cbb914d 000000000000 000000000000
39 1 3 1b55917b3699 000000000000 000000000000
39 1 3 1b55917b3699 000000000000 000000000000
40 2 1 8f3d04e263e5 000000000000 000000000000
40 2 1 8f3d04e263e5 000000000000 000000000000
41 3 2 f0ef8726ac4f 000000000000 000000000000
41 3 2 f0ef8726ac4f 000000000000 000000000000
42 4 4 0b76e38b4070 000000000000 000000000000
42 4 4 0b76e38b4070 000000000000 000000000000
43
43
44 $ for i in 012 021 102 120 201 210 manifest-file; do
44 $ for i in 012 021 102 120 201 210 manifest-file; do
45 > echo $i
45 > echo $i
46 > hg debugindex $i
46 > hg debugindex $i
47 > echo
47 > echo
48 > done
48 > done
49 012
49 012
50 rev linkrev nodeid p1 p2
50 rev linkrev nodeid p1 p2
51 0 0 b8e02f643373 000000000000 000000000000
51 0 0 b8e02f643373 000000000000 000000000000
52 1 1 5d9299349fc0 000000000000 000000000000
52 1 1 5d9299349fc0 000000000000 000000000000
53 2 2 2661d26c6496 000000000000 000000000000
53 2 2 2661d26c6496 000000000000 000000000000
54
54
55 021
55 021
56 rev linkrev nodeid p1 p2
56 rev linkrev nodeid p1 p2
57 0 0 b8e02f643373 000000000000 000000000000
57 0 0 b8e02f643373 000000000000 000000000000
58 1 2 5d9299349fc0 000000000000 000000000000
58 1 2 5d9299349fc0 000000000000 000000000000
59 2 1 2661d26c6496 000000000000 000000000000
59 2 1 2661d26c6496 000000000000 000000000000
60
60
61 102
61 102
62 rev linkrev nodeid p1 p2
62 rev linkrev nodeid p1 p2
63 0 1 b8e02f643373 000000000000 000000000000
63 0 1 b8e02f643373 000000000000 000000000000
64 1 0 5d9299349fc0 000000000000 000000000000
64 1 0 5d9299349fc0 000000000000 000000000000
65 2 2 2661d26c6496 000000000000 000000000000
65 2 2 2661d26c6496 000000000000 000000000000
66
66
67 120
67 120
68 rev linkrev nodeid p1 p2
68 rev linkrev nodeid p1 p2
69 0 1 b8e02f643373 000000000000 000000000000
69 0 1 b8e02f643373 000000000000 000000000000
70 1 2 5d9299349fc0 000000000000 000000000000
70 1 2 5d9299349fc0 000000000000 000000000000
71 2 0 2661d26c6496 000000000000 000000000000
71 2 0 2661d26c6496 000000000000 000000000000
72
72
73 201
73 201
74 rev linkrev nodeid p1 p2
74 rev linkrev nodeid p1 p2
75 0 2 b8e02f643373 000000000000 000000000000
75 0 2 b8e02f643373 000000000000 000000000000
76 1 0 5d9299349fc0 000000000000 000000000000
76 1 0 5d9299349fc0 000000000000 000000000000
77 2 1 2661d26c6496 000000000000 000000000000
77 2 1 2661d26c6496 000000000000 000000000000
78
78
79 210
79 210
80 rev linkrev nodeid p1 p2
80 rev linkrev nodeid p1 p2
81 0 2 b8e02f643373 000000000000 000000000000
81 0 2 b8e02f643373 000000000000 000000000000
82 1 1 5d9299349fc0 000000000000 000000000000
82 1 1 5d9299349fc0 000000000000 000000000000
83 2 0 2661d26c6496 000000000000 000000000000
83 2 0 2661d26c6496 000000000000 000000000000
84
84
85 manifest-file
85 manifest-file
86 rev linkrev nodeid p1 p2
86 rev linkrev nodeid p1 p2
87 0 3 b8e02f643373 000000000000 000000000000
87 0 3 b8e02f643373 000000000000 000000000000
88 1 4 5d9299349fc0 000000000000 000000000000
88 1 4 5d9299349fc0 000000000000 000000000000
89
89
90 $ cd ..
90 $ cd ..
91 $ for i in 0 1 2 3 4; do
91 $ for i in 0 1 2 3 4; do
92 > hg clone -q -U --pull crossed $i
92 > hg clone -q -U --pull crossed $i
93 > echo "% Trying to strip revision $i"
93 > echo "% Trying to strip revision $i"
94 > hg --cwd $i strip $i
94 > hg --cwd $i strip $i
95 > echo "% Verifying"
95 > echo "% Verifying"
96 > hg --cwd $i verify
96 > hg --cwd $i verify
97 > echo
97 > echo
98 > done
98 > done
99 % Trying to strip revision 0
99 % Trying to strip revision 0
100 saved backup bundle to $TESTTMP/0/.hg/strip-backup/*-backup.hg (glob)
100 saved backup bundle to $TESTTMP/0/.hg/strip-backup/*-backup.hg (glob)
101 % Verifying
101 % Verifying
102 checking changesets
102 checking changesets
103 checking manifests
103 checking manifests
104 crosschecking files in changesets and manifests
104 crosschecking files in changesets and manifests
105 checking files
105 checking files
106 checked 4 changesets with 15 changes to 7 files
106 checked 4 changesets with 15 changes to 7 files
107
107
108 % Trying to strip revision 1
108 % Trying to strip revision 1
109 saved backup bundle to $TESTTMP/1/.hg/strip-backup/*-backup.hg (glob)
109 saved backup bundle to $TESTTMP/1/.hg/strip-backup/*-backup.hg (glob)
110 % Verifying
110 % Verifying
111 checking changesets
111 checking changesets
112 checking manifests
112 checking manifests
113 crosschecking files in changesets and manifests
113 crosschecking files in changesets and manifests
114 checking files
114 checking files
115 checked 4 changesets with 14 changes to 7 files
115 checked 4 changesets with 14 changes to 7 files
116
116
117 % Trying to strip revision 2
117 % Trying to strip revision 2
118 saved backup bundle to $TESTTMP/2/.hg/strip-backup/*-backup.hg (glob)
118 saved backup bundle to $TESTTMP/2/.hg/strip-backup/*-backup.hg (glob)
119 % Verifying
119 % Verifying
120 checking changesets
120 checking changesets
121 checking manifests
121 checking manifests
122 crosschecking files in changesets and manifests
122 crosschecking files in changesets and manifests
123 checking files
123 checking files
124 checked 4 changesets with 14 changes to 7 files
124 checked 4 changesets with 14 changes to 7 files
125
125
126 % Trying to strip revision 3
126 % Trying to strip revision 3
127 saved backup bundle to $TESTTMP/3/.hg/strip-backup/*-backup.hg (glob)
127 saved backup bundle to $TESTTMP/3/.hg/strip-backup/*-backup.hg (glob)
128 % Verifying
128 % Verifying
129 checking changesets
129 checking changesets
130 checking manifests
130 checking manifests
131 crosschecking files in changesets and manifests
131 crosschecking files in changesets and manifests
132 checking files
132 checking files
133 checked 4 changesets with 19 changes to 7 files
133 checked 4 changesets with 19 changes to 7 files
134
134
135 % Trying to strip revision 4
135 % Trying to strip revision 4
136 saved backup bundle to $TESTTMP/4/.hg/strip-backup/*-backup.hg (glob)
136 saved backup bundle to $TESTTMP/4/.hg/strip-backup/*-backup.hg (glob)
137 % Verifying
137 % Verifying
138 checking changesets
138 checking changesets
139 checking manifests
139 checking manifests
140 crosschecking files in changesets and manifests
140 crosschecking files in changesets and manifests
141 checking files
141 checking files
142 checked 4 changesets with 19 changes to 7 files
142 checked 4 changesets with 19 changes to 7 files
143
143
General Comments 0
You need to be logged in to leave comments. Login now