Petrus Theron
Petrus Theron

Reputation: 28807

Undo "discard" local changes after merge in TortoiseHg

I just lost a bunch of work because I accidentally clicked "discard" when I tried to merge in remote changes.

Can anyone recommend a way to recover my uncommitted local changes? :'(

Does Mercurial or TortoiseHg store a backup somewhere of the last deleted changes?

Upvotes: 1

Views: 1060

Answers (1)

Chris
Chris

Reputation: 6042

Was it through this window?

TortoiseHG

In which case, I'm afraid, no, there is not.

I believe this window calls the command hg update -r MY_BRANCH -C, where the -C flag denotes there will be no backups.

As an aside, if it was a different way, you'd want to be looking for .orig files, which would be the format of the backup.

Upvotes: 4

Related Questions