undoing a hg addremove mistake
Christophe HENRY
listes at sbgodin.fr
Thu Jan 9 19:50:21 UTC 2014
Le Thu, 9 Jan 2014 11:36:13 -0800
Luke Mergner <lmergner at gmail.com> a écrit :
> Hi,
>
> I am trying to recover some files from my working directory (a python
> project). Somehow using Vim, I created a file named ";". Having
> forgotten about it, I later "hg addremove", which added the bad
> file. Being clever, I decided to remove it with hg by saying...
>
> $ hg remove directory/;
>
> ...which removed a about a dozen files in several child directories.
> I haven't committed yet. However, saying "hg add *" doesn't seem to
> do anything since the files appear to be completely gone. Is this
> the case even though I didn't say --force?
>
> Is there anyway to recover these files at this point? I'd like an
> expert opinion before I commit and move on.
> (...)
$ hg revert directory
I hope it helps,
--
Christophe HENRY
FR EO EN - http://www.sbgodin.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140109/c25f59ca/attachment.asc>
More information about the Mercurial
mailing list