changeset 6197:f1d4c9eddcc1

tests: use desc() revset instead of node hashes in test-evolve-continue.t Using desc() makes the tests less fragile if new steps are inserted, since the test output can be more easily regenerated rather than having to go and find all of the commit hashes in the input to replace them.
author Luke Granger-Brown <hg@lukegb.com>
date Mon, 14 Mar 2022 17:05:41 +0000
parents 4a837da84f5f
children cc80747ef3c8
files tests/test-evolve-continue.t
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-evolve-continue.t	Sun Mar 06 17:44:11 2022 +0300
+++ b/tests/test-evolve-continue.t	Mon Mar 14 17:05:41 2022 +0000
@@ -41,7 +41,7 @@
 
 Simple case of evolve --continue
 
-  $ hg up ca1b80f7960a
+  $ hg up 'desc("added c")'
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ echo bar > d
   $ hg add d
@@ -158,7 +158,7 @@
 
 Case when there are a lot of revision to continue
 
-  $ hg up c7586e2a9264
+  $ hg up 'desc("added a")'
   0 files updated, 0 files merged, 4 files removed, 0 files unresolved
   $ echo bar > b
   $ hg add b
@@ -222,7 +222,7 @@
   o  0:8fa14d15e168 added hgignore
       () draft
 
-  $ hg up 95665a2de664
+  $ hg up 'desc("added c")'
   1 files updated, 0 files merged, 4 files removed, 0 files unresolved
 
   $ echo bar > f
@@ -308,7 +308,7 @@
   o  0:8fa14d15e168 added hgignore
       () draft
 
-  $ hg up 5794f1a3cbb2
+  $ hg up 'desc("added f")'
   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ echo bar > g
   $ hg add g