Mercurial undo command

Sébastien Pierre sebastien at xprima.com
Mon May 8 10:15:32 CDT 2006


Le lundi 08 mai 2006 à 08:10 -0700, Bryan O'Sullivan a écrit :
> On Mon, 2006-05-08 at 11:02 -0400, Sébastien Pierre wrote:
> 
> > Is it a design choice that "undo" is only able to undo the last commit
> > or pull ?
> 
> Yes.  It just undoes the effect of the last transaction.
> 
> It's probably not a well-chosen name for newcomers; "hg rollback" is a
> name that is more descriptive, and would be less likely to get stumbled
> upon by accident.

So, wouldn't it be useful to have an "undo" command that would be able
to undo any change that was made, not only commit/pull ?

For instance, in the merge case I was presenting earlier, an undo
command would have really helped me.

 -- Sébastien




More information about the Mercurial mailing list