TortoiseHg Copy Similarity feature

后端 未结 3 756
再見小時候
再見小時候 2021-02-08 14:31

When committing changes to Mercurial, it can auto-detect move/copy/renames by using the command

hg addremove -similarity 100

The nu

3条回答
  •  别那么骄傲
    2021-02-08 15:13

    Yes it can. If you take a look at the TortoiseHg manual you'll find section 4.12 entitled "Rename Guessing". To quote:

    1. Select one or more Unrevisioned Files
    2. Slide the similarity bar (Minimum Similarity Percentage) to the percentage match you want
    3. Press either Find Renames or Find Copies
    4. Select candidate matches and accept good matches
    5. Repeat until all unversioned files are matched

    The nice thing is step 5: you can actually toggle the similarity as you go, and Tortoise changes what files are considered renames on the fly. You can get most of what you want by sliding the bar carefully to the right percentage and re-checking.

提交回复
热议问题