How I deleted my new files with good help from Mercurial

Matt Mackall mpm at selenic.com
Mon Jun 28 21:00:23 UTC 2010


On Mon, 2010-06-28 at 22:50 +0200, Daniel Carrera wrote:
> On Mon, Jun 28, 2010 at 8:23 PM, Matt Mackall <mpm at selenic.com> wrote:
> > That's fine and as designed. Backout is basically three steps rolled
> > into one:
> >
> > - update -C <rev>
> > - revert -r <parent of rev>
> > - commit
> >
> ...
> >
> > Of course. This is -the only way to lose history- with core Mercurial.
> > Spreading the blame to other commands is pointless.
> 
> I've thought about this, and this is what I think:
> 
> It is wrong for backout to modify the working directory. This
> behaviour is unexpected and dangerous, as it will destroy uncommitted
> data.

Except.. it won't. It will refuse to run.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list