Default behavior of uncommit

Nathan Goldbaum nathan12343 at gmail.com
Wed Jul 23 22:05:34 UTC 2014


Hi all,

I just ran into a confusing behavior in uncommit.

Right now when one doesn't specify an argument to uncommit, this happens:

$ hg uncommit
abort: nothing to uncommit

I would have expected it to uncommit the previous changeset, i.e. the
inverse of "hg commit".

After perusing "hg help uncommit" I see that I actually wanted:

$ hg uncommit --all

I'm curious, would it be possible to make uncommit use --all by default?

If not, would it possible to print out a more detailed hint besides
"nothing to uncommit"?

-Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-evolve-testers/attachments/20140723/5868e796/attachment-0002.html>


More information about the Evolve-testers mailing list