Rename file only by case

David M. Carr davidmc24 at gmail.com
Wed Jan 9 14:36:33 UTC 2013


On Wed, Jan 9, 2013 at 9:22 AM, Mads Kiilerich <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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20130109/d9e24c50/attachment.html>


More information about the Mercurial mailing list