Resolving Mercurial Case-Folding Collision in Windows

后端 未结 9 1691
悲哀的现实
悲哀的现实 2020-12-09 08:15

I\'ve seen the other Mercurial case-folding Answers on StackOverflow - they say that if you have access to a case sensitive file system like unix then check out there and it

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 08:39

    Its a regular problem in Windows for not using case-sensitive file systems. If you want to do it with the TortoiseHg Workbench installed, search the file and rename it:

    right click/TortoiseHg/Rename File

    It will rename the file to the right case sensitive name you want. The next picture shows how i changed XMLConverter for XmlConverter

    enter image description here

    Then in the Workbench you may commit the file change:

    enter image description here

    This was updated a week later

    The solution presented may gives you problems later updating the whole repository from another PC. So the ultimate way to resolve it, may be making 2 commits:

    1. One for renaming files with the unwanted name to some temporary one. Ex.: XMLConverter2
    2. Another for renaming the temporary files to the new names. Ex.: XmlConverter

    So it got like this:

    renaming the temporary files to the new names

    This is actually the way it doesnt make conflicts in Windows anymore. It looks ugly but it is effective.

提交回复
热议问题