[PATCH] hg revert should unlink copied and renamed files

Bryan O'Sullivan bos at serpentine.com
Mon Nov 7 17:17:52 UTC 2005


On Mon, 2005-11-07 at 17:43 +0100, Benoit Boissinot wrote:

> > This change does not seem correct to me.
> 
> the idea i had was that hg revert is destructive and
> renames and copies can be removed since the original file will be
> (or can be) recreated.

That's a perfectly reasonable idea; it just happens to not be
correct :-)

> > In the case of file removal, what if the removed file has been replaced
> > with a new file that has the same name?
> 
> we can check if a file exists, but the user already knew it if he did a
> 'hg status' before.

This still strikes me as unsafe.

	<b




More information about the Mercurial mailing list