Resolving Mercurial Case-Folding Collision in Windows

后端 未结 9 1644
悲哀的现实
悲哀的现实 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:37

    We resolved this without resorting to a case-sensitive filesystem by issuing HG rename commands. Say you are having trouble because "Foo.txt" needs to be called "foo.txt":

    hg rename Foo.txt Foo.txt.renamed
    hg rename Foo.txt.renamed foo.txt
    

    We encountered this problem when a file was deleted and then later re-created in the main repository with the same name, but different case. A branch repository that was created before these changes could not then be merged in, despite the changesets from the main repository having been pulled.

提交回复
热议问题