lime icon

Phosphorus and Lime

A Developer's Broadsheet

This blog has been deprecated. Please visit my new blog at klenwell.com/press.
Removing a File from a Hg Repository
Removing a file from a mercurial repository without deleting it: hg rm -A.

Example:

hg rm -A dir/*


I think this works. The docs aren't exactly clear on the point:

http://www.selenic.com/pipermail/mercurial/2007-April/012917.html

If you use hg rm file, it just deletes the file.

Labels: