removing files

Soh Tk-r28629 tksoh at freescale.com
Mon Aug 1 19:09:30 CDT 2005


> On Mon, 2005-08-01 at 09:37 +0800, Soh Tk-r28629 wrote:
> > How can I remove a file (from Hg's point of view) without having to
> > remove the file physically first?
> 
> You can't.  That's a rather unusual thing to need to do.  If I get
> around to making --include and --exclude global options, you could put
> those names in your hgrc as defaults to exclude.  But I haven't done
> that yet...

Unusual it may be, but not wrong I supposed. May be we can add an option to hg rm to force a remove [from repo] but not having to delete the files first. How do --include and --exclude options work when used on hg rm?

One related issue I saw with rm is that it cripples the filename completion support in shells, as rm wants the files to be deleted first, leaving nothing for the shell to search for completion when running hg rm later.



More information about the Mercurial mailing list