how to *really* revert?

Bryan O'Sullivan bos at
Tue Aug 9 11:14:04 CDT 2005

On Tue, 2005-08-09 at 16:53 +0200, Thomas Arendsen Hein wrote:

> A quick workaround is to clone the repository to regenerate the
> dirstate info.

If the problem is that the dirstate has gone screwy, and you have no
uncommitted changes that you care about, it seems to work fine to just
do this:

    cd $(hg root)
    rm -rf *
    rm .hg/dirstate
    hg update

Probably doesn't save any time, though.


More information about the Mercurial mailing list