Windows people: please help check idea for a new Mercurial repository layout
Adrian Buehlmann
adrian at cadifra.com
Mon Jun 16 09:39:08 CDT 2008
On 16.06.2008 16:11, Risto Kankkunen wrote:
>> And you will have to use the ...W functions of win32file for *all* disk
>> access inside .hg, feeding every path as an absolute path with '\' path
>> separators only (must include drive letter) in a Unicode string object
>> prepended by "\\?\".
>
> No you don't for paths that you can reach with <260 chars or which don't contain
> DOS device names.
Well. That statement does shed light on what exactly with regards to paths > 260?
(Besides telling us again that you can write reserved filenames?)
>> So, PyWin32 will be an obligatory dependency (not really an issue,
>> just to mention it).
>
> Why do you think so?
>
> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> file(r'\\?\c:\aux.i', 'wt').write('Hello, world!\n')
> >>> file(r'\\?\c:\aux.i').read()
> 'Hello, world!\n'
> >>>
Ah. The reserved filename example again.
So, win32file is not needed for paths > 260?
More information about the Mercurial
mailing list