Mercurial > hg
changeset 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 |
files | tests/test-obsolete-divergent.t tests/test-obsolete.t |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
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
--- a/tests/test-obsolete.t Sun Apr 15 18:27:49 2018 +0800 +++ b/tests/test-obsolete.t Sun Apr 15 18:37:22 2018 +0800 @@ -1049,9 +1049,9 @@ $ hg log -r 50c51b361e60 -T '{whyunstable}\n' orphan: obsolete parent 3de5eca88c00 phase-divergent: immutable predecessor 245bde4270cd - $ hg log -r 50c51b361e60 -T '{whyunstable%"{instability}: {reason} {node}\n"}' - orphan: obsolete parent 3de5eca88c00aa039da7399a220f4a5221faa585 - phase-divergent: immutable predecessor 245bde4270cd1072a27757984f9cda8ba26f08ca + $ hg log -r 50c51b361e60 -T '{whyunstable % "{instability}: {reason} {node|shortest}\n"}' + orphan: obsolete parent 3de5 + phase-divergent: immutable predecessor 245b #if serve