Search code examples
mercurialtortoisehg

What does it mean that hg applies a patch to a working directory?


I am trying to use patches (to revive a corrupted repository) for the first time in my life. So I am not very well familiar with the concept, though I've read a bit. I am using TortoiseHg. I have created a patch (as a file), switched to another repository, and am trying to import it. I've asked THg to import it to Repository (other options are Shelf and Working Directory). When I click Import, THg says that the patch was imported to a working directory and the Console reads:

% hg import --verbose --"PATH\1059.patch"
applying PATH\1059.patch
applied to working directory
[command completed successfully DATE]

and I don't see any changes in the history window (no revision 1059). I wonder what I should do now or what I am doing wrong.

I am on Windows 10, TortoiseHg 4.9 with Mercurial 4.9.


Solution

  • Unless a better answer is provided, I have to assume that this behaviour is due to the corrupted repository: it is not observed when doing exactly the same with a non-corrupted repository.