diff tests/test-obsolete-divergent.t @ 37705:82eeafd78784

tests: make custom templates that use {whyunstable} terser These templates demonstrate that {whyunstable} is fully template-friendly, but they don't need to produce such long lines of output.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 15 Apr 2018 18:37:22 +0800
parents 3335658516be
children 04b89360913c
line wrap: on
line diff
--- a/tests/test-obsolete-divergent.t	Sun Apr 15 18:27:49 2018 +0800
+++ b/tests/test-obsolete-divergent.t	Sun Apr 15 18:37:22 2018 +0800
@@ -723,10 +723,10 @@
 
   $ hg log -r 1a2a9b5b0030 -T '{whyunstable}\n'
   content-divergent: 4:70d5a63ca112 (draft) predecessor a178212c3433
-  $ hg log -r 1a2a9b5b0030 -T '{whyunstable%"{instability}:{divergentnodes} {reason} {node}\n"}'
-  content-divergent: 4:70d5a63ca112 (draft) predecessor a178212c3433c4e77b573f6011e29affb8aefa33
-  $ hg log -r 1a2a9b5b0030 -T '{whyunstable%"{instability}:{divergentnodes % " {node} ({phase})"} {reason} {node}\n"}'
-  content-divergent: 70d5a63ca112acb3764bc1d7320ca90ea688d671 (draft) predecessor a178212c3433c4e77b573f6011e29affb8aefa33
+  $ hg log -r 1a2a9b5b0030 -T '{whyunstable % "{instability}:{divergentnodes} {reason} {node|shortest}\n"}'
+  content-divergent: 4:70d5a63ca112 (draft) predecessor a178
+  $ hg log -r 1a2a9b5b0030 -T '{whyunstable % "{instability}:{divergentnodes % " {node|shortest} ({phase})"} {reason} {node|shortest}\n"}'
+  content-divergent: 70d5 (draft) predecessor a178
 
 #if serve