recovering a removed file
Dirkjan Ochtman
dirkjan at ochtman.nl
Mon Feb 15 12:19:48 UTC 2010
On Mon, Feb 15, 2010 at 13:12, Jeff Alperin <jalperin at gmail.com> wrote:
> I'm sure this is pretty basic, but how do I recover a file (and its history)
> when it has been removed from a prior, committed changeset. In other words,
> I removed in changeset 100 and am now up to changeset 150.
You can either use hg backout or hg revert. revert would seem to be
the easier solution in this case, but backout might make your history
better (not sure it actually matters).
I'd use hg revert -r100 <filename>.
Cheers,
Dirkjan
More information about the Mercurial
mailing list