I'm working with a project I inherited from a Windows guy. It's under Hg version control. It got some inconsistent filename convention which I'm trying to fix so I renamed a file named jquery.fullpage.js
to jquery.fullPage.js
(just uppercased "P") to adhere to the original author of that jQuery library.
However, Hg doesn't detect the lowercase-uppercase change as a rename or even as deleted/created file. As a result, I can't commit that change and push it live. It works locally but on the remote staging server where I pushed, it gives 404 errors. Apparently, the files on the remote weren't renamed to the uppercase P.
I know I can fix this by deleting the file, commit, restore the file and rename, commit again but that seems to be a crude way of fixing it.
How do I fix this?
This is a case folding problem. Try to rename the file through Mercurial: hg rename jquery.fullpage.js jquery.fullPage.js
.