Cannot understand "update REV" behaviour

Bryan O'Sullivan bos at
Fri Sep 16 09:42:21 CDT 2005

On Fri, 2005-09-16 at 16:35 +0200, Stephane Bortzmeyer wrote:

> The file was accidentally deleted later and I want to recreate it. But
> "hg update -m 0" has the side-effect of deleting other files, which do
> not depend on the above and are not mentioned in changeset 0:

Because the update command is rewinding the working directory to look
like it did at rev 0.

If you want to get the deleted file back, update to the tip, and use the
revert command to get that file back as it was at whatever revision you


More information about the Mercurial mailing list