[Python-Dev] Mercurial, linefeeds, and Visual Studio
Paul Moore
p.f.moore at gmail.com
Fri Jun 5 15:14:52 CEST 2009
2009/6/5 Nick Coghlan <ncoghlan at gmail.com>:
> Dirkjan Ochtman wrote:
>>> Essentially, pcbuild.sln is a binary file, and should be treated as
>>> such. Maybe it's an error in the Subversion setup that it's treated as
>>> text at all...
>>
>> Yes, it certainly seems that way.
>
> Except it isn't a binary file - it's a text file with CRLF line endings.
> Why would we throw away the chance to get meaningful diffs when
> Subversion can easily get the line endings correct?
Fair point - I hadn't thought of it in that context. I wonder if
Mercurial can treat it as a specialised form of binary file with
custom diff/merge behaviour (which just happens to be "treat as
text")? Of course, if that also requires client-side configuration,
it's no better solution than win32text.
I've a feeling I've seen discussions of versioned metadata (things
like file properties) in Mercurial at some point in the past, but my
Google skills are failing me at the moment...
Paul.
More information about the Python-Dev
mailing list