removing file from Hg control

Matt Mackall mpm at selenic.com
Wed Aug 3 20:03:16 CDT 2005


On Thu, Aug 04, 2005 at 08:44:26AM +0800, Soh Tk-r28629 wrote:

> I would like to remove some files from being managed by Hg, that I
> accidentally checked in much earlier. I have tried to remove the
> files from .hg/data/, which seems to work, but I'm not this is the
> right thing to do. Comment?

It's absolutely not the right thing to do. hg verify will be very
upset with you.

The right thing to do is to hg remove the files and then list them in
.hgignore. Yes, remove currently refuses to remove files that still
exist. So we can either add a force flag to remove, or you can rename
them temporarily.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list