Rename file only by case

Roger Kratz Roger.Kratz at teleopti.com
Wed Jan 9 14:39:27 UTC 2013


Yepp. I (finally) understood. ;)

Thanks.

From: David M. Carr [mailto:davidmc24 at gmail.com]
Sent: den 9 januari 2013 15:37
To: Mads Kiilerich
Cc: Roger Kratz; mercurial at selenic.com
Subject: Re: Rename file only by case

On Wed, Jan 9, 2013 at 9:22 AM, Mads Kiilerich <mads at kiilerich.com<mailto:mads at kiilerich.com>> wrote:
On 01/09/2013 02:58 PM, Roger Kratz wrote:
<< I'm not sure why you think there is any issue at all?>>

I’m not sure I understand you now ;)

My “issue” is that I need to rename a file twice if I want to change only case of name. I interpreted your answer like “You don’t have to from Hg’s point of view. However, Windows treats file names case insensitive so in your environment you have to”.

No you don't.


1) hg mv FOO.txt foo.txt
2) hg commit

/Mads

_______________________________________________
Mercurial mailing list
Mercurial at selenic.com<mailto:Mercurial at selenic.com>
http://selenic.com/mailman/listinfo/mercurial

In case that wasn't clear, I believe that if you use "hg mv" to rename the file, rather than Windows file move/rename operations, it will correctly update the case-sensitive version of the name that Mercurial tracks without requiring multiple renames/commits.

The improved behavior appears to have been included in Mercurial 2.1.2 (rename: handle case-changing).

http://mercurial.selenic.com/wiki/WhatsNew
http://bz.selenic.com/show_bug.cgi?id=1717

--
David M. Carr
davidmc24 at gmail.com<mailto:davidmc24 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130109/0faea6e0/attachment-0005.html>


More information about the Mercurial mailing list