-1

I was deleting some files, but I also deleted a modified file that I hadn't done the commit yet.

Is there any way to restore this file?

Mercurial has deleted the local file too.

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
james watt
  • 175
  • 1
  • 12
  • 1
    It would be useful if you indicated what system/os is hosting your local file. There are OS-Specific ways to recover files that respondents might be able to suggest to you. – SteveJ Nov 13 '17 at 18:11
  • Just to clarify: You're saying that the file had not been committed to source control at all, correct? – Taegost Nov 13 '17 at 18:11
  • 'Modified' sounds like this was version controlled file which was edited but not committed. There might be a .ORIG file created in the same location. – StayOnTarget Jan 11 '18 at 21:16

1 Answers1

0

Unless you commit a file there's nothing to recover from. However if there file was committed at least once then you can use this to help you restore it: How can I recover a removed file in Mercurial (if at all)?

b1kjsh
  • 1,109
  • 2
  • 9
  • 21