diff tests/test-rebase-issue-noparam-single-rev.t @ 35385:469b06b4c3ca

tests: add commit hashes to log commands in rebase tests Commit hashes are a useful way to ensure the content of commits made in the tests are not changing, even if we don't query every aspect of every commit. (And some properties, like extras, are rarely printed at all.) Many of the rebase log -G calls didn't show hashes; by adding hashes to places that weren't showing them we can help protect those tests from unwanted changes. Differential Revision: https://phab.mercurial-scm.org/D1650
author Phil Cohen <phillco@fb.com>
date Sun, 10 Dec 2017 21:57:37 -0800
parents 3b7cb3d17137
children 4441705b7111
line wrap: on
line diff
--- a/tests/test-rebase-issue-noparam-single-rev.t	Sun Dec 10 22:39:46 2017 -0800
+++ b/tests/test-rebase-issue-noparam-single-rev.t	Sun Dec 10 21:57:37 2017 -0800
@@ -6,7 +6,7 @@
   > publish=False
   > 
   > [alias]
-  > tglog = log -G --template "{rev}: '{desc}' {branches}\n"
+  > tglog = log -G --template "{rev}: {node|short} '{desc}' {branches}\n"
   > EOF
 
 
@@ -37,15 +37,15 @@
   adding r2
 
   $ hg tglog
-  @  4: 'r2'
+  @  4: 225af64d03e6 'r2'
   |
-  o  3: 'r1'
+  o  3: 8d0a8c99b309 'r1'
   |
-  | o  2: 'l1'
+  | o  2: 87c180a611f2 'l1'
   |/
-  o  1: 'c2'
+  o  1: 56daeba07f4b 'c2'
   |
-  o  0: 'c1'
+  o  0: e8faad3d03ff 'c1'
   
 Rebase with no arguments - single revision in source branch:
 
@@ -56,15 +56,15 @@
   saved backup bundle to $TESTTMP/a/.hg/strip-backup/87c180a611f2-a5be192d-rebase.hg (glob)
 
   $ hg tglog
-  @  4: 'l1'
+  @  4: b1152cc99655 'l1'
   |
-  o  3: 'r2'
+  o  3: 225af64d03e6 'r2'
   |
-  o  2: 'r1'
+  o  2: 8d0a8c99b309 'r1'
   |
-  o  1: 'c2'
+  o  1: 56daeba07f4b 'c2'
   |
-  o  0: 'c1'
+  o  0: e8faad3d03ff 'c1'
   
   $ cd ..
 
@@ -96,15 +96,15 @@
   created new head
 
   $ hg tglog
-  @  4: 'r1'
+  @  4: 8d0a8c99b309 'r1'
   |
-  | o  3: 'l2'
+  | o  3: 1ac923b736ef 'l2'
   | |
-  | o  2: 'l1'
+  | o  2: 87c180a611f2 'l1'
   |/
-  o  1: 'c2'
+  o  1: 56daeba07f4b 'c2'
   |
-  o  0: 'c1'
+  o  0: e8faad3d03ff 'c1'
   
 Rebase with no arguments - single revision in target branch:
 
@@ -116,15 +116,15 @@
   saved backup bundle to $TESTTMP/b/.hg/strip-backup/87c180a611f2-b980535c-rebase.hg (glob)
 
   $ hg tglog
-  @  4: 'l2'
+  @  4: 023181307ed0 'l2'
   |
-  o  3: 'l1'
+  o  3: 913ab52b43b4 'l1'
   |
-  o  2: 'r1'
+  o  2: 8d0a8c99b309 'r1'
   |
-  o  1: 'c2'
+  o  1: 56daeba07f4b 'c2'
   |
-  o  0: 'c1'
+  o  0: e8faad3d03ff 'c1'
   
 
   $ cd ..