removing files

Soh Tk-r28629 tksoh at
Mon Aug 1 18:53:09 CDT 2005

> > How can I remove a file (from Hg's point of view) without having to
> remove the file physically first? I checked in some generated binary files
> (for preservation purpose), but would like Hg to ignore them after the
> initial commit.
> >
> Easy, just rename the file, then hg remove <oldname>

Impractical. There may be tens, or even hundreds of such files.

> hg remove shouldn't delete the file. Maybe someone unforseeingly changed
> that behaviour...

hg rm does not delete the file.

More information about the Mercurial mailing list