comparison tests/test-evolve-obshistory.t @ 2410:0756d36696bc

test: clean the debugobshistory cycle test Use 'desc(...)' instead of revision numbers. Also blank lines between commands in the same test
author Boris Feld <boris.feld@octobus.net>
date Thu, 18 May 2017 14:49:02 +0200
parents 783a74c60a5e
children bd937b7ce7d2
comparison
equal deleted inserted replaced
2409:2b563a725cdc 2410:0756d36696bc
1244 user: test 1244 user: test
1245 date: Thu Jan 01 00:00:00 1970 +0000 1245 date: Thu Jan 01 00:00:00 1970 +0000
1246 summary: ROOT 1246 summary: ROOT
1247 1247
1248 Create a cycle 1248 Create a cycle
1249 $ hg prune -s 2 1 1249 $ hg prune -s "desc(B)" "desc(A)"
1250 1 changesets pruned 1250 1 changesets pruned
1251 2 new unstable changesets 1251 2 new unstable changesets
1252 $ hg prune -s 3 2 1252 $ hg prune -s "desc(C)" "desc(B)"
1253 1 changesets pruned 1253 1 changesets pruned
1254 $ hg prune -s 1 3 1254 $ hg prune -s "desc(A)" "desc(C)"
1255 0 files updated, 0 files merged, 2 files removed, 0 files unresolved 1255 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
1256 working directory now at 2a34000d3544 1256 working directory now at 2a34000d3544
1257 1 changesets pruned 1257 1 changesets pruned
1258 $ hg log --hidden -G 1258 $ hg log --hidden -G
1259 x changeset: 3:a8df460dbbfe 1259 x changeset: 3:a8df460dbbfe
1280 Actual test 1280 Actual test
1281 ----------- 1281 -----------
1282 1282
1283 Check that debugobshistory never crash on a cycle 1283 Check that debugobshistory never crash on a cycle
1284 1284
1285 $ hg debugobshistory 1 --hidden 1285 $ hg debugobshistory "desc(A)" --hidden
1286 @ 2a34000d3544 (1) A 1286 @ 2a34000d3544 (1) A
1287 | rewritten by test (*20*) as c473644ee0e9 (glob) 1287 | rewritten by test (*20*) as c473644ee0e9 (glob)
1288 | 1288 |
1289 x a8df460dbbfe (3) C 1289 x a8df460dbbfe (3) C
1290 | rewritten by test (*20*) as 2a34000d3544 (glob) 1290 | rewritten by test (*20*) as 2a34000d3544 (glob)
1291 | 1291 |
1292 x c473644ee0e9 (2) B 1292 x c473644ee0e9 (2) B
1293 | rewritten by test (*20*) as a8df460dbbfe (glob) 1293 | rewritten by test (*20*) as a8df460dbbfe (glob)
1294 | 1294 |
1295 $ hg debugobshistory 2 --hidden 1295
1296 $ hg debugobshistory "desc(B)" --hidden
1296 @ 2a34000d3544 (1) A 1297 @ 2a34000d3544 (1) A
1297 | rewritten by test (*20*) as c473644ee0e9 (glob) 1298 | rewritten by test (*20*) as c473644ee0e9 (glob)
1298 | 1299 |
1299 x a8df460dbbfe (3) C 1300 x a8df460dbbfe (3) C
1300 | rewritten by test (*20*) as 2a34000d3544 (glob) 1301 | rewritten by test (*20*) as 2a34000d3544 (glob)
1301 | 1302 |
1302 x c473644ee0e9 (2) B 1303 x c473644ee0e9 (2) B
1303 | rewritten by test (*20*) as a8df460dbbfe (glob) 1304 | rewritten by test (*20*) as a8df460dbbfe (glob)
1304 | 1305 |
1305 $ hg debugobshistory 3 --hidden 1306
1307 $ hg debugobshistory "desc(C)" --hidden
1306 @ 2a34000d3544 (1) A 1308 @ 2a34000d3544 (1) A
1307 | rewritten by test (*20*) as c473644ee0e9 (glob) 1309 | rewritten by test (*20*) as c473644ee0e9 (glob)
1308 | 1310 |
1309 x a8df460dbbfe (3) C 1311 x a8df460dbbfe (3) C
1310 | rewritten by test (*20*) as 2a34000d3544 (glob) 1312 | rewritten by test (*20*) as 2a34000d3544 (glob)
1311 | 1313 |
1312 x c473644ee0e9 (2) B 1314 x c473644ee0e9 (2) B
1313 | rewritten by test (*20*) as a8df460dbbfe (glob) 1315 | rewritten by test (*20*) as a8df460dbbfe (glob)
1314 | 1316 |
1317