monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] very strange cygwin/mingw difference


From: Thomas Keller
Subject: Re: [Monotone-devel] very strange cygwin/mingw difference
Date: Wed, 27 Oct 2010 10:34:33 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.11) Gecko/20101013 Lightning/1.0b3pre Thunderbird/3.1.5

Am 27.10.2010 09:49, schrieb Stephen Leake:
> Stephen Leake <address@hidden> writes:
> 
>> diff_on_missing_trailing_newline_at_end_of_file is passing on MinGW and
>> Debian, but failing on Cygwin.
>>
>> The failure is because the revid for the commit is different:
>>
>> stdout:
>> #
>> # old_revision [b0598d59ea7c3b8b4a6f27e5ac80c1337c33f1c3]
>> #
>>
>> file13.diff:
>> #
>> # old_revision [40ea110392539e19c2d251569a3610c0051e0c64]
>> #
>>
>> the revision contains two files. I don't see how they can have different
>> revids.
>>
>> I'll try to investigate further; any ideas?
> 
> I think I found it; cygwin sets the "mtn:execute" attribute, but mingw
> doesn't. And that's part of the manifest that is hashed for the id:
> 
> cygwin:
> $../../../mtn.exe au get_manifest_of 
> format_version "1"
> 
> dir ""
> 
>    file "file1"
> content [a43dc27b1c92cccc533ceb3a27035128e26e5b07]
>    attr "mtn:execute" "true"
> 
>    file "file2"
> content [4f8091d2fa31b0598dd0ff6dc936f8d0b47b59d1]
>    attr "mtn:execute" "true"
> 
> 
> mingw:
> ../../../mtn.exe au get_manifest_of 
> format_version "1"
> 
> dir ""
> 
>    file "file1"
> content [a43dc27b1c92cccc533ceb3a27035128e26e5b07]
> 
>    file "file2"
> content [4f8091d2fa31b0598dd0ff6dc936f8d0b47b59d1]

Hrm... I'm by no means a Windows expert, but does plain Win32 (not
Cygwin) even have the concept of an executable bit...? This might be the
reason why its not set on mingw.

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]