experiments with multi-rev undo

Chris Mason mason at suse.com
Fri Jul 8 22:54:31 UTC 2005


On Friday 08 July 2005 17:09, Matt Mackall wrote:

> > But this is complicated when there are multiple heads because the
> > revlog might have unrelated revisions that need to be preserved. So,
> > I search for additional heads and preserve their contents by
> > creating a changegroup. After the truncate, the changegroup is
> > applied.
>
> Not really keen on this being integrated into hg directly. Perhaps
> an external tool in contrib.
>
> As I mentioned before, I think people are already becoming too
> dependent on undo. Undo breaks all sorts of assumptions of the model
> and only exists as a last resort. Anything more complicated or
> powerful than the simple undo we have right now needs to be harder to
> do, otherwise people will be careless with it and get burned.

Fair enough, although I'll cook it in my quilt integration code for a 
while...I've already got a few changes to it.

I do think there are a few valid uses for this but it can easily live 
externally for now.

-chris



More information about the Mercurial mailing list