##// END OF EJS Templates
tests: unify test-debugbuilddag
Pradeepkumar Gayam -
r11922:3e59059b default
parent child Browse files
Show More
@@ -1,74 +1,321 b''
1 #! /bin/sh
1 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "graphlog=" >> $HGRCPATH
2 3
3 echo "[extensions]" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH
5
6
7
8 echo ---- overwritten and appended files
4 overwritten and appended files
9 5
10 rm -rf repo
11 hg init repo
12 cd repo
13 hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' -q -oa
14 echo -- dag
15 hg debugdag -t -b
16 echo -- tip
17 hg id
18 echo -- glog
19 hg glog --template '{rev}: {desc} [{branches}] @ {date}\n'
20 echo -- glog of
21 hg glog --template '{rev}: {desc} [{branches}]\n' of
22 echo -- glog af
23 hg glog --template '{rev}: {desc} [{branches}]\n' af
24 echo -- tags
25 hg tags -v
26 echo -- cat of
27 hg cat of
28 echo -- cat af
29 hg cat af
30 cd ..
6 $ rm -rf repo
7 $ hg init repo
8 $ cd repo
9 $ hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' -q -oa
10 dag
11 $ hg debugdag -t -b
12 +2:f
13 +3:p2
14 @temp*f+3
15 @default*/p2+2:tip
16 tip
17 $ hg id
18 f96e381c614c tip
19 glog
20 $ hg glog --template '{rev}: {desc} [{branches}] @ {date}\n'
21 @ 11: r11 [] @ 11.00
22 |
23 o 10: r10 [] @ 10.00
24 |
25 o 9: r9 [] @ 9.00
26 |\
27 | o 8: r8 [temp] @ 8.00
28 | |
29 | o 7: r7 [temp] @ 7.00
30 | |
31 | o 6: r6 [temp] @ 6.00
32 | |
33 | o 5: r5 [temp] @ 5.00
34 | |
35 o | 4: r4 [] @ 4.00
36 | |
37 o | 3: r3 [] @ 3.00
38 | |
39 o | 2: r2 [] @ 2.00
40 |/
41 o 1: r1 [] @ 1.00
42 |
43 o 0: r0 [] @ 0.00
44
45 glog of
46 $ hg glog --template '{rev}: {desc} [{branches}]\n' of
47 @ 11: r11 []
48 |
49 o 10: r10 []
50 |
51 o 9: r9 []
52 |\
53 | o 8: r8 [temp]
54 | |
55 | o 7: r7 [temp]
56 | |
57 | o 6: r6 [temp]
58 | |
59 | o 5: r5 [temp]
60 | |
61 o | 4: r4 []
62 | |
63 o | 3: r3 []
64 | |
65 o | 2: r2 []
66 |/
67 o 1: r1 []
68 |
69 o 0: r0 []
70
71 glog af
72 $ hg glog --template '{rev}: {desc} [{branches}]\n' af
73 @ 11: r11 []
74 |
75 o 10: r10 []
76 |
77 o 9: r9 []
78 |\
79 | o 8: r8 [temp]
80 | |
81 | o 7: r7 [temp]
82 | |
83 | o 6: r6 [temp]
84 | |
85 | o 5: r5 [temp]
86 | |
87 o | 4: r4 []
88 | |
89 o | 3: r3 []
90 | |
91 o | 2: r2 []
92 |/
93 o 1: r1 []
94 |
95 o 0: r0 []
96
97 tags
98 $ hg tags -v
99 tip 11:f96e381c614c
100 p2 4:d9d6db981b55 local
101 f 1:73253def624e local
102 cat of
103 $ hg cat of
104 r11
105 cat af
106 $ hg cat af
107 r0
108 r1
109 r5
110 r6
111 r7
112 r8
113 r9
114 r10
115 r11
116 $ cd ..
31 117
32 echo ---- new and mergeable files
118 new and mergeable files
33 119
34 rm -rf repo
35 hg init repo
36 cd repo
37 hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' -q -mn
38 echo -- dag
39 hg debugdag -t -b
40 echo -- tip
41 hg id
42 echo -- glog
43 hg glog --template '{rev}: {desc} [{branches}] @ {date}\n'
44 echo -- glog mf
45 hg glog --template '{rev}: {desc} [{branches}]\n' mf
120 $ rm -rf repo
121 $ hg init repo
122 $ cd repo
123 $ hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' -q -mn
124 dag
125 $ hg debugdag -t -b
126 +2:f
127 +3:p2
128 @temp*f+3
129 @default*/p2+2:tip
130 tip
131 $ hg id
132 9c5ce9b70771 tip
133 glog
134 $ hg glog --template '{rev}: {desc} [{branches}] @ {date}\n'
135 @ 11: r11 [] @ 11.00
136 |
137 o 10: r10 [] @ 10.00
138 |
139 o 9: r9 [] @ 9.00
140 |\
141 | o 8: r8 [temp] @ 8.00
142 | |
143 | o 7: r7 [temp] @ 7.00
144 | |
145 | o 6: r6 [temp] @ 6.00
146 | |
147 | o 5: r5 [temp] @ 5.00
148 | |
149 o | 4: r4 [] @ 4.00
150 | |
151 o | 3: r3 [] @ 3.00
152 | |
153 o | 2: r2 [] @ 2.00
154 |/
155 o 1: r1 [] @ 1.00
156 |
157 o 0: r0 [] @ 0.00
158
159 glog mf
160 $ hg glog --template '{rev}: {desc} [{branches}]\n' mf
161 @ 11: r11 []
162 |
163 o 10: r10 []
164 |
165 o 9: r9 []
166 |\
167 | o 8: r8 [temp]
168 | |
169 | o 7: r7 [temp]
170 | |
171 | o 6: r6 [temp]
172 | |
173 | o 5: r5 [temp]
174 | |
175 o | 4: r4 []
176 | |
177 o | 3: r3 []
178 | |
179 o | 2: r2 []
180 |/
181 o 1: r1 []
182 |
183 o 0: r0 []
184
46 185
47 echo -- man r4
48 hg manifest -r4
49 echo -- cat r4 mf
50 hg cat -r4 mf
51 echo -- man r8
52 hg manifest -r8
53 echo -- cat r8 mf
54 hg cat -r8 mf
55 echo -- man
56 hg manifest
57 echo -- cat mf
58 hg cat mf
59 cd ..
186 man r4
187 $ hg manifest -r4
188 mf
189 nf0
190 nf1
191 nf2
192 nf3
193 nf4
194 cat r4 mf
195 $ hg cat -r4 mf
196 0 r0
197 1
198 2 r1
199 3
200 4 r2
201 5
202 6 r3
203 7
204 8 r4
205 9
206 10
207 11
208 12
209 13
210 14
211 15
212 16
213 17
214 18
215 19
216 20
217 21
218 22
219 23
220 man r8
221 $ hg manifest -r8
222 mf
223 nf0
224 nf1
225 nf5
226 nf6
227 nf7
228 nf8
229 cat r8 mf
230 $ hg cat -r8 mf
231 0 r0
232 1
233 2 r1
234 3
235 4
236 5
237 6
238 7
239 8
240 9
241 10 r5
242 11
243 12 r6
244 13
245 14 r7
246 15
247 16 r8
248 17
249 18
250 19
251 20
252 21
253 22
254 23
255 man
256 $ hg manifest
257 mf
258 nf0
259 nf1
260 nf10
261 nf11
262 nf2
263 nf3
264 nf4
265 nf5
266 nf6
267 nf7
268 nf8
269 nf9
270 cat mf
271 $ hg cat mf
272 0 r0
273 1
274 2 r1
275 3
276 4 r2
277 5
278 6 r3
279 7
280 8 r4
281 9
282 10 r5
283 11
284 12 r6
285 13
286 14 r7
287 15
288 16 r8
289 17
290 18 r9
291 19
292 20 r10
293 21
294 22 r11
295 23
296 $ cd ..
60 297
61 echo ---- command
298 command
62 299
63 rm -rf repo
64 hg init repo
65 cd repo
66 hg debugbuilddag '+2 !"touch X" +2' -q -o
67 echo -- dag
68 hg debugdag -t -b
69 echo -- glog
70 hg glog --template '{rev}: {desc} [{branches}]\n'
71 echo -- glog X
72 hg glog --template '{rev}: {desc} [{branches}]\n' X
73 cd ..
74
300 $ rm -rf repo
301 $ hg init repo
302 $ cd repo
303 $ hg debugbuilddag '+2 !"touch X" +2' -q -o
304 dag
305 $ hg debugdag -t -b
306 +4:tip
307 glog
308 $ hg glog --template '{rev}: {desc} [{branches}]\n'
309 @ 3: r3 []
310 |
311 o 2: r2 []
312 |
313 o 1: r1 []
314 |
315 o 0: r0 []
316
317 glog X
318 $ hg glog --template '{rev}: {desc} [{branches}]\n' X
319 o 2: r2 []
320
321 $ cd ..
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now