Mercurial undo command

Matt Mackall mpm at selenic.com
Mon May 8 11:27:18 CDT 2006


On Mon, May 08, 2006 at 12:26:01PM -0400, Colin McMillen wrote:
> > The unbundle command can also be rolled back, as can import, as can an
> > incoming push.  Having a proliferation of command names with "un-"
> > prefixes is not helpful.
> 
> If the problem is merely with the plethora of command names that would
> result, I suggest removing "undo" altogether and adding an --undo
> option to commands that support it:
> 
> hg commit --undo
> hg unbundle --undo

No, rollback is more correct. We can't undo the last commit if we've
done a pull since then. And we can only do rollback once.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list