Mercurial: Rename File Where Only the Case Changes

If you’re working on a Windows Developer box and you want to check in a java class rename where ONLY the case changes , you’re going to run into issues.


Rename File

  • FROM
  • TO:

Commit to Mercurial

Next Person to Pull will have the following issue:

  • File name will be
  • Java class name will be TestFile
  • Eclipse will complain

Solution: Rename to Temp -> Commit -> rename -> commit again

If you want to stick with the rename.

  1. Rename file to

  2. Commit to Repository

  3. Rename file to

  4. Commit to Repository

  5. Push

It's only fair to share...
Share on Facebook
Tweet about this on Twitter
Share on LinkedIn

Leave a Reply