Patchwork [2,of,3] test-keyword: make test more resilient to hash changes

login
register
mail settings
Submitter Matt Harbison
Date April 10, 2015, 3:38 a.m.
Message ID <ca0da0fe83538ab7cb6b.1428637083@Envy>
Download mbox | patch
Permalink /patch/8587/
State Superseded
Headers show

Comments

Matt Harbison - April 10, 2015, 3:38 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1428633432 14400
#      Thu Apr 09 22:37:12 2015 -0400
# Node ID ca0da0fe83538ab7cb6bc4a754cebbfe0a8c8520
# Parent  0d5394e845d2a60d73152fa5be501e14a1f41c94
test-keyword: make test more resilient to hash changes

I ran into this when adding a field to 'extras'.

Patch

diff --git a/tests/test-keyword.t b/tests/test-keyword.t
--- a/tests/test-keyword.t
+++ b/tests/test-keyword.t
@@ -1309,8 +1309,8 @@ 
 
   $ hg commit -m 'backout #11'
   $ hg histedit -q --command - 13 <<EOF
-  > pick 49f5f2d940c3 14 backout #11
-  > pick 01a68de1003a 13 9foobranch
+  > pick `hg log -r 14 -T "{node|short}"` 14 backout #11
+  > pick `hg log -r 13 -T "{node|short}"` 13 9foobranch
   > EOF
 
 Test restricted mode with fetch (with merge)