How I deleted my new files with good help from Mercurial
Anton Shestakov
engored at ya.ru
Mon Jun 28 08:10:23 UTC 2010
28.06.10, 16:20, "Jørgen Austvik" <jaustvik at acm.org>:
> I'll replay how I did it, and highlight some places where it could
> have been more forgiving (in square brackets). Hopefully others will
> not delete their files in the same way :)
I've repeated the steps in my spare time and managed to get my files back. The problem is, I don't how hg log would not show the commit in which you've added your file:
>$ hg log | grep username
>(nothing containing my new files)
>$
Maybe there's something missing in your instructions. Because clearly:
> $ hg backout tip
> removing example_file
> changeset 1033:e9a5491a4636 backs out changeset 1032:976a92922ca5
>
> $ hg rollback
>
This way you've rolled back your backout. The commit with your file is still in the development history and you sure can go back to it. Just do hg up -C <rev> (hg help up) and your file will reappear.
On a side note, it was completely obvious (apart from `hg log | grep username` bit) to me partly because I use hg-prompt. It's like running hg status after every command you do (and more). That's some good addition to plain console, I recommend it.
More information about the Mercurial
mailing list