TortoiseHG: undoing Guess Rename --> Accept Match
Asked Answered
Q

2

12

I'm using TortoiseHG and am trying to handle a renamed file. Unfortunately, I accidentally clicked Accept Match for one of the files and want to undo it. How do I do so without hurting the files I'm trying to commit?

Queenqueena answered 5/7, 2010 at 7:40 Comment(0)
G
12

In the commit dialog you can right-click on the added file, and select forget. Then the file is no longer marked as copy. When you want the file in the commit, you can add this file again.

Geesey answered 6/7, 2010 at 15:4 Comment(2)
I'm in this situation, but "forget" is not an option in the context menu.Northway
The problem is with the "removed" file, even though the "added" file can be "forgotten", the "removed" file can't be assigned to another "added" file so the guess rename cannot really be undone.Wismar
N
0

I'm not sure what's different but for me, there is no "forget" option in this situation.

What worked for me is choosing "revert" on the added file (the one marked as 'A'). This removes the rename, but also restores the original file. (If you renamed asdf.txt to fdsa.txt you will now have two files with those names.)

You then have to manually delete the restored file, and you should be back where you started. Note that I find it's safer to delete files with Windows file explorer, since they will end up in the recycle bin. Files deleted from thg are deleted permanently.

Northway answered 12/10, 2016 at 17:24 Comment(1)
This has worked for me although it is not really convenient.Dougherty

© 2022 - 2024 — McMap. All rights reserved.