Why backout, not revert?

Alpár Jüttner alpar at cs.elte.hu
Tue Mar 25 08:22:55 CDT 2008

On Tue, 2008-03-25 at 10:37 +0100, Marcin Kasperski wrote:
> Are there any noticeable advantages of using backout instead of revert?
> (by using revert I mean
>      hg revert -r BeforeIStartedThisBadIdea
>      hg commit -m "Giving up the flawed concept"
> )

Backout seems to be equivalent with
   hg update -C BadCommit
   hg revert -r ParentOfBadCommit
   hg commit

Personally I think that backout is of little use. Hopefully it is used
very rarely in practice, thus it isn't really a problem to do it
manually. Moreover, it does not allow reverting more than one
(consecutive) commits at once, which might also be necessary sometimes.


> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial

More information about the Mercurial mailing list