Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial HG case-folding collision?

  1. first i have a file name readme
  2. then i change it to README
  3. commit
  4. push

ok the problem is there are two files: readme and README

how do i delete the readme on the repository ?

when i do update i get this error abort: case-folding collision between readme and README

like image 392
Adam Ramadhan Avatar asked Aug 19 '10 10:08

Adam Ramadhan


1 Answers

Mercurial can handle filenames in the same directory that differ only in their case within its repositories (.hg directory at the top level of your repo). On case sensitive file systems (most on unix) it can handle those files in the working directory too. However, on systems that are merely case-retentive the OS doesn't let you have two files in the same directory that differ only by case and Mercurial warns you about that (as you've seen).

To work around this limitation of your OS, checkout your clone on a case sensitive file system, delete the file, and then commit/push. So long as the windows people aren't hg updating to a revision that has the collision they'll be okay (since it's okay down in the repository just not in their working dir).

like image 85
Ry4an Brase Avatar answered Nov 15 '22 23:11

Ry4an Brase