Mercurial > hg
comparison tests/test-obsolete-divergent.t @ 37706:04b89360913c
tests: split long templates that use {whyunstable} and put them in hgrc
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 15 Apr 2018 19:28:01 +0800 |
parents | 82eeafd78784 |
children | 24fee31fda05 |
comparison
equal
deleted
inserted
replaced
37705:82eeafd78784 | 37706:04b89360913c |
---|---|
14 > drawdag=$TESTDIR/drawdag.py | 14 > drawdag=$TESTDIR/drawdag.py |
15 > [alias] | 15 > [alias] |
16 > debugobsolete = debugobsolete -d '0 0' | 16 > debugobsolete = debugobsolete -d '0 0' |
17 > [phases] | 17 > [phases] |
18 > publish=False | 18 > publish=False |
19 > [templates] | |
20 > wuentryshort = '{instability}:{divergentnodes} {reason} {node|shortest}\n' | |
21 > whyunstableshort = '{whyunstable % wuentryshort}' | |
22 > wuentryshorter = '{instability}:{divergentnodes % " {node|shortest} ({phase})"} {reason} {node|shortest}\n' | |
23 > whyunstableshorter = '{whyunstable % wuentryshorter}' | |
19 > EOF | 24 > EOF |
20 | 25 |
21 | 26 |
22 $ mkcommit() { | 27 $ mkcommit() { |
23 > echo "$1" > "$1" | 28 > echo "$1" > "$1" |
721 $ hg debugwhyunstable 1a2a9b5b0030 | 726 $ hg debugwhyunstable 1a2a9b5b0030 |
722 content-divergent: 70d5a63ca112acb3764bc1d7320ca90ea688d671 (draft) predecessor a178212c3433c4e77b573f6011e29affb8aefa33 | 727 content-divergent: 70d5a63ca112acb3764bc1d7320ca90ea688d671 (draft) predecessor a178212c3433c4e77b573f6011e29affb8aefa33 |
723 | 728 |
724 $ hg log -r 1a2a9b5b0030 -T '{whyunstable}\n' | 729 $ hg log -r 1a2a9b5b0030 -T '{whyunstable}\n' |
725 content-divergent: 4:70d5a63ca112 (draft) predecessor a178212c3433 | 730 content-divergent: 4:70d5a63ca112 (draft) predecessor a178212c3433 |
726 $ hg log -r 1a2a9b5b0030 -T '{whyunstable % "{instability}:{divergentnodes} {reason} {node|shortest}\n"}' | 731 $ hg log -r 1a2a9b5b0030 -T whyunstableshort |
727 content-divergent: 4:70d5a63ca112 (draft) predecessor a178 | 732 content-divergent: 4:70d5a63ca112 (draft) predecessor a178 |
728 $ hg log -r 1a2a9b5b0030 -T '{whyunstable % "{instability}:{divergentnodes % " {node|shortest} ({phase})"} {reason} {node|shortest}\n"}' | 733 $ hg log -r 1a2a9b5b0030 -T whyunstableshorter |
729 content-divergent: 70d5 (draft) predecessor a178 | 734 content-divergent: 70d5 (draft) predecessor a178 |
730 | 735 |
731 #if serve | 736 #if serve |
732 | 737 |
733 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | 738 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |