Refetching a locally deleted file from Mercurial
19,054
Solution 1
The following will revert all deleted files in the current repo:
hg status -nd0|xargs -0 hg revert
Solution 2
cd to your dir and do "hg revert ." to restore all files or used any appropriate mask like *.java, etc.. This will effect only the current dir (not sure about subdirs).
Author by
ScrollerBlaster
Coding in Assembly, C/C++, Java, JavaScript since 1986.
Updated on June 13, 2022Comments
-
ScrollerBlaster about 2 years
I deleted one of the files that was in my repository locally (just at the file system level, not using
hg remove
). I now want to get that file back from the repository to my local directory. When I dohg status
, it knows that the file is locally deleted, but there are no changes to be commited which is what I would expect.