Bugs item #2074555, was opened at 2008-08-25 18:23
Message generated for change (Settings changed) made by sborho
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=968354&aid=2074555&group_id=199155

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Ben Houston (bhouston)
Assigned to: Nobody/Anonymous (nobody)
Summary: Path case sensitivity issues on semi-case insensitive Win32.

Initial Comment:
I have run into the following error 4 times in the past couple months.

This message appears when I try to update to the latest revision that I have 
pulled in from another machine:

*** case-folding collision between MyProject/myClassName.java and 
MyProject/MyClassName.java [command interrupted]

Basically, I checked in a file and then later I changed the character casing of 
a classname and its associated source file using an automatic refactoring tool 
and then I checked in the renamed file that differences in its character casing.

No errors or warnings on commit.  But I am unable to update these changes to 
another machine as the above error appears.

My workarounds:

(1) Initially I just created a new repository and lost all my previous changes. 
 This solution of course worked, but it really reduced the usefulness of 
TortoiseHG.

(2) I have gotten good at identifying and "Stripping Revisions" from the repo 
that contain the references to the two conflicting character casings of the 
problematic files.  This takes quite a while and I end up grouping together 
into one commit what previously where the individual revisions that I had to 
strip out.

It would be nice to fix this issue as the refactoring tool that I use has never 
caused this issue to occur with TortoiseSVN.  That is to say: there is a way to 
fix this issue.

----------------------------------------------------------------------

Comment By: TK Soh (tksoh)
Date: 2008-08-25 19:14

Message:
Logged In: YES 
user_id=411637
Originator: NO

Maybe you will find this useful:

    http://www.selenic.com/mercurial/wiki/index.cgi/FixingCaseCollisions

----------------------------------------------------------------------

Comment By: TK Soh (tksoh)
Date: 2008-08-25 19:10

Message:
Logged In: YES 
user_id=411637
Originator: NO

Do you know how your refactoring tool change the file name in your repo?
Is this 'hg mv', or combination of 'hg rm' and 'hg add'. When I tried the
latter, and Hg did not complain during commit, but it won't let me checkout
the earlier changeset after the commit. I'm sure if this is a 'known' bug
in Hg.

FYI, 'hg mv' won't let me rename file with case-flips in it's filename.



----------------------------------------------------------------------

Comment By: Ben Houston (bhouston)
Date: 2008-08-25 18:58

Message:
Logged In: YES 
user_id=77981
Originator: YES

I am not using "hg mv" rather I am using an IDE refactoring tool that just
changes the files names.  I don't mind that it breaks individual file
revision tracking (i.e. it appears as if one file is deleted and a new one
is created), its enough that it just tracks the changes.  But right now if
I change case during a refactor it breaks the Hg repo for all other
computers it get's synchronized to.  I am using Vista and Windows XP -- and
it appears that I can cause this error on either machine, thus I think it
is just the way Win32 handles file names.

----------------------------------------------------------------------

Comment By: TK Soh (tksoh)
Date: 2008-08-25 18:53

Message:
Logged In: YES 
user_id=411637
Originator: NO

I am confused. So, you are on Windows. Do you use 'hg mv' to rename the
file? I though it won't let you.

In any case, I am not too familiar with case-collision in hg.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=968354&aid=2074555&group_id=199155

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to