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

  • Home
  • SEARCH
  • 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 6547463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:50:02+00:00 2026-05-25T11:50:02+00:00

I have inherited a Java project which includes a number of classes that are

  • 0

I have inherited a Java project which includes a number of classes that are not named according to the UpperCamelCase naming convention.

This is particularly the case with abbreviations (e.g. HTMLButton rather than HtmlButton). Whilst I know there are some differences of opinion on the use of CamelCase with abbreviations, we would like to switch to only using a capital letter for the first letter of the abbreviation. (Currently, there appear to be several simultaneous naming conventions.)

I’d like to tidy this up. We’re using Mercurial as our source code repository and working on Windows machines (including XP, Vista, 7). However, if I change a class name from HTMLButton to HtmlButton, Mercurial recognises this as a class name change, but not as a file name change. (And subsequently any pulls from Mercurial don’t pick up the file name change.)

I know that Windows works on a case-insenstive file system, and I understand that Mercurial picks up on this feature when accepting pushes from a Windows box…

So…:
– Is there a setting I can change to get Mercurial to use case-sensitive file names?
– Is there a setting I can change to get Windows to use case-sensitive file names?
(These are separate questions. My priority is to get Mercurial to accept file name changes, if necessary, we can then manually force file renames in our IDE. However, a straight-through solution would be preferred!)

(If all else fails, I might try renaming HTMLButton to HtmlButtonA, commit and push, and rename HtmlButtonA to HtmlButton, and do another commit and push… However, I’m not certain what impact this would have on Windows file names if someone else only did a pull after the second push…)

  • 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-05-25T11:50:03+00:00Added an answer on May 25, 2026 at 11:50 am

    If you do:

    hg rename foo bar
    hg rename bar Foo
    

    You don’t need to actually commit and push until the end. In other words, your repository won’t be aware of this Windows-specific workaround.

    Another option is to rename the file in Windows, then invoke:

    hg rename foo Foo --after
    

    to notify Mercurial of the change.

    Source: http://hgbook.red-bean.com/read/mercurial-in-daily-use.html#id364064

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

Sidebar

Related Questions

I've inherited a java project that appears to have been developed using the NetBeans
I have just 'inherited' a Java-project and not coming from a Java-background I am
For my project I've trying to extend GWT classes that not inherited with client
I have inherited a flex project which is sadly not documented. Im looking for
I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons,
I have inherited a project that uses LLBLGen Pro for the DB layer. The
I've inherited a project which uses JAXB heavily to map XML messages onto Java
I have a project in java where i want that certain data from one
I have a fairly complex set of C++ classes that are re-written from Java.
i have a java class used as an entity that has 2 classes 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.