Case folding collision in Mercurial (WinXP)

Matt Mackall mpm at selenic.com
Tue Jun 24 11:09:45 CDT 2008


On Mon, 2008-06-23 at 18:11 -0700, Dan Craft wrote:
> Summary: Mercurial introduced a case collision during a commit for a
> directory whose capitalization I've never changed.

Currently released versions of Mercurial are a bit touchy about case.
Whatever the capitalization you give to 'hg add/rename/...', Mercurial
will trust, regardless of what's on disk. But Mercurial never -invents-
capitalization, short of interference by cosmic rays. [1]

> How do I fix this?  I am a Mercurial newbie, though I have used other
> vers control systems extensively.  (Impressed by the elegant design as
> described in the red book.)  Please help me with sufficient details
> for such a beginner.

I'm not quite clear what you're trying to do, but you should be able to
'manually revert' by either cloning your repo and copying files or using
'hg cat'. Alternately, you can use hg diff to capture your changes,
check out an old revision, then apply (most of) the diff.

[1] http://lwn.net/Articles/219983/
-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list