Removing file from repository without erasing file...
Steve Borho
steve at borho.org
Fri Dec 7 22:47:03 UTC 2007
On Fri, 2007-12-07 at 22:11 +0100, Mathieu Clabaut wrote:
> I was unable to find it on the BTS. Do you have the issue at hand ?
> (In fact I wanted to open such an issue in order to put a link on a
> patch :
> http://selenic.com/pipermail/mercurial-devel/2007-November/003515.html
> but I found your message and thus my question)
>
The closest I can find now is issue438. The problem described in 438,
the inability to unversion a file without deleting it, has been
addressed by allowing 'hg rm --after'.
The problem now is that there is no way to unversion a modified file
without deleting it. Current behavior:
hg rm --force modified-file # force remove, unversion
hg rm --after file # unversion, keep
hg rm --after --force modified-file # force remove, keep (doh!), unversion
Your patch changes this behavior to:
hg rm --after --force modified-file # keep, force unversion
issue541, which was just closed yesterday, suggested the syntax
'hg rm -keep'. I think this has cleaner semantics.
hg rm --keep file # keep, unrevision
hg rm --keep --force modified-file # keep, force unrevision
--
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F E2E4 B0C2 5292 F2C6 2C8C
More information about the Mercurial
mailing list