Mercurial > evolve
diff tests/test-evolve-cycles.t @ 2484:262d684851dc
obshistory: add the all option to obslog to show the while obs tree
Add a --all option to obslog in order to display also the successors of each
obs markers. It has the effect of showing a more comprehensive graph when a
split or a divergence happened.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 23 May 2017 19:48:04 +0200 |
parents | a147ea7fb579 |
children | 9019d41998ab |
line wrap: on
line diff
--- a/tests/test-evolve-cycles.t Fri May 26 16:12:07 2017 +0200 +++ b/tests/test-evolve-cycles.t Tue May 23 19:48:04 2017 +0200 @@ -117,6 +117,19 @@ | rewritten by test (*) as a8df460dbbfe (glob) | +Check that all option don't crash on a cycle either + + $ hg obslog "desc(C)" --hidden --all + @ 2a34000d3544 (1) A + | rewritten by test (*) as c473644ee0e9 (glob) + | + x a8df460dbbfe (3) C + | rewritten by test (*) as 2a34000d3544 (glob) + | + x c473644ee0e9 (2) B + | rewritten by test (*) as a8df460dbbfe (glob) + | + Test with multiple cyles ======================== @@ -247,7 +260,26 @@ x | c473644ee0e9 (2) B | | rewritten by test (*) as a8df460dbbfe (glob) | | - +Check that all option don't crash either on a cycle + $ hg obslog --all --hidden "desc(F)" + x 0da815c333f6 (5) E + | rewritten by test (*) as d9f908fde1a1 (glob) + | + @ 868d2e0eb19c (4) D + |\ rewritten by test (*) as 0da815c333f6 (glob) + | | + | x d9f908fde1a1 (6) F + | | rewritten by test (*) as 868d2e0eb19c (glob) + | | + +---x 2a34000d3544 (1) A + | | rewritten by test (*) as c473644ee0e9 (glob) + | | + x | a8df460dbbfe (3) C + | | rewritten by test (*) as 2a34000d3544, 868d2e0eb19c (glob) + | | + x | c473644ee0e9 (2) B + | | rewritten by test (*) as a8df460dbbfe (glob) + | | Check the json output is valid in this case $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool @@ -362,3 +394,4 @@ "debugobshistory.shortdescription": "A" } ] +