test: clean the debugobshistory cycle test
authorBoris Feld <boris.feld@octobus.net>
Thu, 18 May 2017 14:49:02 +0200
changeset 2410 0756d36696bc
parent 2409 2b563a725cdc
child 2411 bd937b7ce7d2
test: clean the debugobshistory cycle test Use 'desc(...)' instead of revision numbers. Also blank lines between commands in the same test
tests/test-evolve-obshistory.t
--- a/tests/test-evolve-obshistory.t	Thu May 18 17:03:11 2017 +0200
+++ b/tests/test-evolve-obshistory.t	Thu May 18 14:49:02 2017 +0200
@@ -1246,12 +1246,12 @@
      summary:     ROOT
   
 Create a cycle
-  $ hg prune -s 2 1
+  $ hg prune -s "desc(B)" "desc(A)"
   1 changesets pruned
   2 new unstable changesets
-  $ hg prune -s 3 2
+  $ hg prune -s "desc(C)" "desc(B)"
   1 changesets pruned
-  $ hg prune -s 1 3
+  $ hg prune -s "desc(A)" "desc(C)"
   0 files updated, 0 files merged, 2 files removed, 0 files unresolved
   working directory now at 2a34000d3544
   1 changesets pruned
@@ -1282,7 +1282,7 @@
 
 Check that debugobshistory never crash on a cycle
 
-  $ hg debugobshistory 1 --hidden
+  $ hg debugobshistory "desc(A)" --hidden
   @  2a34000d3544 (1) A
   |    rewritten by test (*20*) as c473644ee0e9 (glob)
   |
@@ -1292,7 +1292,8 @@
   x  c473644ee0e9 (2) B
   |    rewritten by test (*20*) as a8df460dbbfe (glob)
   |
-  $ hg debugobshistory 2 --hidden
+
+  $ hg debugobshistory "desc(B)" --hidden
   @  2a34000d3544 (1) A
   |    rewritten by test (*20*) as c473644ee0e9 (glob)
   |
@@ -1302,7 +1303,8 @@
   x  c473644ee0e9 (2) B
   |    rewritten by test (*20*) as a8df460dbbfe (glob)
   |
-  $ hg debugobshistory 3 --hidden
+
+  $ hg debugobshistory "desc(C)" --hidden
   @  2a34000d3544 (1) A
   |    rewritten by test (*20*) as c473644ee0e9 (glob)
   |
@@ -1312,3 +1314,4 @@
   x  c473644ee0e9 (2) B
   |    rewritten by test (*20*) as a8df460dbbfe (glob)
   |
+