'hg fold' usability

anatoly techtonik techtonik at gmail.com
Wed Nov 20 15:55:43 CST 2013

I can see the value in keeping two variants:
1> hg fold rev
2> hg fold -r revset

The most confusing part is:
> hg fold rev1:rev2
it doesn't complain, and works like:
> hg fold -r rev1:.

Why it is not possible to just do:
> hg fold revset

If revset is a single revision, fold up to current rev.
If revset is a range revision, fold up the range only.

This way -r argument will be obsolete.

Please CC.
anatoly t.

More information about the Mercurial mailing list