Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:27:02+00:00 2026-06-03T01:27:02+00:00

I have a TortoiseHG (2.3.2) repository containing a directory at the root called cv2

  • 0

I have a TortoiseHG (2.3.2) repository containing a directory at the root called “cv2” on my Windows7 Ultimate (32 bit) machine. When I add a new file in different subdirectories of the “cv2”, TortoiseHG is showing “cv2” as either “cv2” or “CV2” depending on the directory.

For example, if I add a file called “tom.cs” to the following directories, I get the following results in TortoiseHG:

Physical Directory                 TortoiseHG Filename
...\cv2\Common\tom.cs              cv2/Common/tom.cs
...\cv2\tom.cs                     CV2/tom.cs
...\cv2\WinClient\tom.cs           cv2/WinClient/tom.cs
...\cv2\WinService\tom.cs          CV2/WinService/tom.cs

I don’t know when this started, but it has meant that I now have commits into both “cv2” and “CV2” resulting in two separate directories within the repository (not a lot I can do about that I guess).

The repository holds a single solution, with 3 projects in sub-directories (“cv2” is one of them, along with “cp2” and “NotificationService”). I’ve just discovered that the solution file had the directory name of “CV2” instead of “cv2”. That has now been changed as it was stopping the “Diff” from working in Visual Studio… however it’s been like that from the very start and has not been changed since the initial commit. Unfortunately I cannot remember if I have renamed the Windows directory in that time… it’s possible I have.

Is there anything I do about this discrepancy of having either “CV2” or “cv2” depending on which directory it is? I have tried renaming the Windows directory via a command prompt without success. I was under the impression that Mercurial ignored case-sensitivity when being run on a Windows machine, but I guess I’ve been misinformed.

I am the only developer on the project, so there is no danger of messing up anybody else with any changes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:27:03+00:00Added an answer on June 3, 2026 at 1:27 am

    Yes, Mercurial ignores the file name case on case-insensitive filesystems, but it still has to store the filenames with some case in the repository.

    With Mercurial 2.2-rc (see the wiki for instructions on how to run a release candidate in Windows) you will be able to run

    hg rename CV2/tom.cs cv2/tom.cs
    

    to schedule a “rename” for the next commit. The file wont move on disk — since it’s already in the right place for a case-insensitive file system — but the rename will be recorded in history and new checkouts will have the right case on the disk.

    There are more instructions in the wiki, including a caseguard extension that you can use to protect yourself in the future. However, this should mostly be fixed with Mercurial 2.2, which will have much more code for dealing with case folding issues compared to previous versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a docx file in my SVN repository. Now I want different users
I have created a repository on https://bitbucket.org/ and use TortoiseHg to clone it to
Suppose you have this SVN repository structure Root Foo Project1 Project2 Bar Project3 And
I can't get Tortoisehg (1.0) to work with subrepos I have a directory structure
I use Tortoise SVN and I have one repository called First. My SVN Location
I have a question about TortoiseHg. My organization is transitioning from SVN to Mercurial.
I'm struggling on how to correctly track nested repositories using TortoiseHg. I have a
Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
Newbie alert! OK, I have a working central Mercurial repository that I've been working
I'm really quite frustrated at this point. I have an existing hg repository that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.