comparison tests/test-evolve-split.t @ 4763:184c64c81528 stable

prune: spell --successor flag without any unnecessary shortcuts If a user wants to spell out -s, it makes sense to allow that. Before this patch, prune would complain that --successor is not a recognized option. Obviously people don't usually need to spell --successors by hand thanks to shell completion (at least for Bash) using debugcomplete to see all available flags, so this patch doesn't bring any need for more typing. And thanks to Mercurial understanding shortened forms of command-line flags as long as they are unambiguous, the old-style `--succ` flags still work normally, and there are tests that use them. But two tests now use the full form to demonstrate that both ways work.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 19 Jul 2019 17:25:29 +0800
parents bcd52ce0916d
children dc3571a37b56
comparison
equal deleted inserted replaced
4751:d0965c5c5335 4763:184c64c81528
40 $ hg commit -m "_oo" 40 $ hg commit -m "_oo"
41 created new head 41 created new head
42 $ printf "pp" > pp; 42 $ printf "pp" > pp;
43 $ hg add pp 43 $ hg add pp
44 $ hg commit -m "_pp" 44 $ hg commit -m "_pp"
45 $ hg prune --succ "desc(_oo) + desc(_pp)" -r "desc('oo+pp')" --split 45 $ hg prune --successor "desc(_oo) + desc(_pp)" -r "desc('oo+pp')" --split
46 1 changesets pruned 46 1 changesets pruned
47 1 new orphan changesets 47 1 new orphan changesets
48 $ hg log -G 48 $ hg log -G
49 @ 4:d0dcf24cddd3@default(draft) _pp 49 @ 4:d0dcf24cddd3@default(draft) _pp
50 | 50 |