monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Case on Mac OS X


From: Thomas Keller
Subject: Re: [Monotone-devel] Case on Mac OS X
Date: Thu, 20 Jan 2011 21:33:34 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.2.13) Gecko/20101129 Lightning/1.0b3pre Thunderbird/3.1.7

Am 20.01.11 20:58, schrieb Mando Rodriguez:
> Hi All,
> 
> Recently upgraded to monotone 0.99.1 (base revision:
> 8973482283db7c36780dce2b54721ccc0f5b7388) on Mac OS X (Snow Leopard). I
> attempted to update a workspace from a new sync that contained the
> renaming of a directory  from:
> 
> glue/swig/python_old/heccer
> 
> to
> 
> glue/swig/python_old/Heccer
> 
> With only the case of the first letter of the directory 'heccer'
> changing from lowercase to uppercase. Monotone bails out claiming that
> the directory already exists.
> 
> mtn: updating along branch '0'
> mtn: selected update target 2898afd0a666f80d05f479d2f9d9d65d50e7c326
> mtn: [left]  1f09160cf4ba710e1afbc64b56d8cd2702dc6bc3
> mtn: [right] 2898afd0a666f80d05f479d2f9d9d65d50e7c326
> mtn: adding glue/swig/python_old/Heccer
> mtn: misuse: rename target 'glue/swig/python_old/Heccer' already exists
> 
> Is there an option I need to switch on to have it handle this? Or is
> this a bug in Mac OS X?

Apple's default file system, HFS+, is case insensitive and monotone is
currently bad at handling case (in)sensitiveness, on Mac as well on
Windows. The reason is simply that the file system reports for both
paths, the old and the new, that the file exists and we cannot do much
about that.

Two possible "fixes" come into my mind here - one would be to
temporarily rename "heccer" to something else, commit and then rename it
from that to "Heccer". This is a bit ugly because it creates unneeded
history. The other is to manually change the workspace' parent revision
in _MTN/revision to the new, anticipated revision, removing
"glue/swig/python_old/heccer" and to mtn revert
"glue/swig/python_old/Heccer". If more files changed, these needs to be
"reverted" as well, since they could otherwise be accidentially
committed as reverse changes.

Thomas.


-- 
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]