Rename file only by case
Roger Kratz
Roger.Kratz at teleopti.com
Wed Jan 9 13:36:32 UTC 2013
<< I assume it is a problem because you are on Windows.>>
Yes, I'm on win. Didn't think that matters if the OS treated file names as case sensitive or not but instead Hg somehow kept the file name as a "case sensitive string" in its db - but I was obviously wrong in my (newbee) thoughts...
It's of course not a big issue but good to know anyhow. Thanks.
/Roger
From: Mads Kiilerich [mailto:mads at kiilerich.com]
Sent: den 9 januari 2013 14:25
To: Roger Kratz
Cc: mercurial at selenic.com
Subject: Re: Rename file only by case
On 01/09/2013 01:49 PM, Roger Kratz wrote:
Hi
If I want to rename file FOO.txt to foo.txt in my repo - what's the best way to do this? I've done this a few times before but not been able to do this without first rename it to a "temp name" so to speak...
1) FOO.txt in repo
2) rename to FOOtemp.txt and commit
3) rename to foo.txt and commit
Can I avoid step 2 somehow?
I assume it is a problem because you are on Windows.
The recommended procedure is:
1) hg mv FOO.txt foo.txt
2) hg commit
/Mads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130109/0034166c/attachment-0003.html>
More information about the Mercurial
mailing list