Search code examples
mercurialtortoisehg

Mercurial: after replacing a file with its temp backup copy, my folder now shows a red exclamation mark


In a folder, I copied a file as a backup. I made a change to the original file, and tested something out. I then deleted the current file, and move my backup over to go back to how things were. All the files have green check marks on them in the folder, but the folder itself has a red exclamation mark. I didn’t run any hg commands while doing this. The timestamp of the file is probably different even though the content is the same.

How can I make the red exclamation mark go away?

I did try to run hg revert on the file, but it says no changes needed.

Thanks.


Solution

  • The red exclamation mark on my folder went away after I did a hg update --clean. But that also reverted all the changes I had going. At least that is one way to get the folder state and folder icon to re-synchronize properly.