File Rename bug when letter case changes

Jamie Clayton avatarJamie Clayton created an issue

Windows 7 x64 + Tortoisehg 2.4.1 doesn't generates an "is not tracked" message and adds files that have been renamed with a different letter casing to the commit untracked files. If you try and commit you get an error in the output log include the text abort: {FILE NAME RENAMED TO DIFF CASE}: file not tracked! [command returned code 255 {COMMIT DATE}]

The file with the old case exists in the REPO but HG is not detecting the change in file name case. E.G. iWindow.vb renamed to IWindow.vb isn't correctly detected as a file rename, rather found as an untracked file.

Similar to Issue #1521

Comments (9)

  1. Yuya Nishihara

    Okay, then, does it open TortoiseHg's rename dialog (see attached screenshot)?

    If not, could you attach the repository renamed by VisualHG, which cannot be committed by TortoiseHg ?

  2. Steve Borho

    This may be VisualHg's problem. Our rename dialog explicitly works around this hole in the Mercurial API. It renames the file first, then uses hg rename --after. Because otherwise hg rename doesn't work om this case.

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.