Rename file only by case

Mads Kiilerich mads at kiilerich.com
Wed Jan 9 13:24:57 UTC 2013


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/5f1f0e80/attachment-0002.html>


More information about the Mercurial mailing list