How do I clean out my working copy?

Matt Mackall mpm at
Wed Aug 10 20:48:44 CDT 2005

On Wed, Aug 10, 2005 at 07:20:30PM -0400, Chuck Ebbert wrote:
>   I want to clear out my working directory.  Is this a good procedure?
>     1.  Delete everything except .hg/ and .hgtags.
>     2.  Overwrite .hg/dirstate with a zero-length file.

It works. But it's simpler just to clone -U, which creates a clone
with no checkout.

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial mailing list