Removing file from repository without erasing file...

Dirkjan Ochtman dirkjan at ochtman.nl
Sat Dec 8 10:44:45 UTC 2007


Steve Borho wrote:
> 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

I don't know whether the --keep needs the application of --force; I 
think --keep by itself is strong enough. I think this would be a useful 
addition, though. At the moment, the use case of just unversioning a 
modified file is not addressed (-fA is insufficient).

Cheers,

Dirkjan




More information about the Mercurial mailing list