[issue1717] 'hg mv' on case-insensitive filesystems cannot change a file name's case

David Wolever mercurial-bugs at selenic.com
Wed Jul 1 11:27:35 CDT 2009


New submission from David Wolever <david at wolever.net>:

Using 'hg mv' to change change a file name's case fails on case-insensitive 
filesystems (specifically, OS X):

    $ hg st --all
    C a
    $ ls
    a
    $ hg mv a A
    A: not overwriting - file exists
    $

Compare that with the the behavior of 'mv':

    $ mv a A
    $ ls
    A
    $

Possibly related:
 - issue1663 - Very easy to introduce case folding errors on Mac OS X
 - issue1425 - Update across case-only rename of file fails on default Mac 
filesystem

Workaround:
    $ hg mv a a.temp
    $ hg mv a.temp A

----------
messages: 9836
nosy: wolever
priority: bug
status: unread
title: 'hg mv' on case-insensitive filesystems cannot change a file name's case

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1717>
____________________________________________________



More information about the Mercurial-devel mailing list