tests: abstract version number for test-topic-stack.t
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 14 Sep 2017 20:33:03 +0200
changeset 2927 01cf426bd458
parent 2926 1abafae41fe2
child 2928 6275808e89ef
tests: abstract version number for test-topic-stack.t Using explicite version number always bring trouble, this is why we have unique description that can select changesets.
tests/test-topic-stack.t
--- a/tests/test-topic-stack.t	Mon Aug 07 23:22:41 2017 +0900
+++ b/tests/test-topic-stack.t	Thu Sep 14 20:33:03 2017 +0200
@@ -453,7 +453,7 @@
   o  0 default {} public c_a
   
 Converting into a linear chain
-  $ hg rebase -s 8 -d 15
+  $ hg rebase -s 'desc("c_e") - obsolete()' -d 'desc("c_h") - obsolete()'
   rebasing 8:215bc359096a "c_e"
   rebasing 9:ec9267b3f33f "c_f"
 
@@ -499,11 +499,11 @@
   |
   o  0 default {} public c_a
   
-  $ hg rebase -s 17 -d 18
+  $ hg rebase -s 'desc("c_f") - obsolete()' -d 'desc("c_e") - obsolete()'
   rebasing 17:77082e55de88 "c_f"
   switching to topic foo
   switching to topic foobar
-  $ hg rebase -s 14 -d 19
+  $ hg rebase -s 'desc("c_g") - obsolete()' -d 'desc("c_D") - obsolete()'
   rebasing 14:0c3e8aed985d "c_g"
   switching to topic foo
   rebasing 15:b9e4f3709bc5 "c_h"