Search code examples
mercurialrecovery

HG changed files not showing after update to revision


Using Mercurial, TortoiseHG, Win XP.

I had a working directory with a number of files. Committed and ready.

My syncing software [incorrectly configured] copied some very old files [from before I was using HG] into my working directory, overwriting many many hours of work.

I wanted to go back to the last committed version, so I did "update to revision" -> current branch tip.

That must have been the wrong thing, as now it shows all of those old files as being the current files, and no sign anywhere of all my work.

That "update to revision" doesn't show in the history or anywhere.

Anything I can do to get my files back?

Also, anytime I try to sync with bitbucket, it hangs, blocks the internet [browser and IM cease to work], and doesn't update [hence I do not have any other copy]. Anyone with an idea how to fix?

Thanks (desperate!)

Below is the graph, as requested. It doesn't show me anything about the update to tip (?): alt text
(source: jewishmusic.net)


Solution

  • If all your changes were committed all you have to do is:
    1. revert local changes (hg revert -a)
    2. update to the revision you want (e.g., hg update tip)

    If you don't revert local changes HG will try to keep them when updating the working directory.

    I don't have any solution to your second problem. I used TortoiseHG on WinXP and it worked well. Try to upgrade to a newer version