[PATCH] cvs -> hg importer: track executable bit
Thomas Arendsen Hein
thomas at intevation.de
Sat Jul 8 09:36:53 UTC 2006
* Brendan Cully <brendan at kublai.com> [20060704 01:28]:
> On Friday, 30 June 2006 at 19:01, Brendan Cully wrote:
> > Two minor things: it doesn't set the executable bit, and I also
> > suspect it doesn't distinguish between text and binary.
>
> Here's a patch to track the executable bit. I think the call to
> util.is_exec may be grody, but I couldn't see what the second argument
> was used for.
The second argument is used on Windows (and should be used on FAT on
Linux, too) to pass in the last known state of the x-bit. This way
this bit isn't cleared on checking in a file when you don't have
support for executable bits in the fs.
Your usage therefore is ok.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list