[PATCH] enable paths >260 for filelogs inside .hg on Windows (EXPERIMENTAL)

Adrian Buehlmann adrian at cadifra.com
Fri Jun 20 08:15:54 CDT 2008


On 20.06.2008 14:49, Adrian Buehlmann wrote:
> On 20.06.2008 14:44, Adrian Buehlmann wrote:
>> # HG changeset patch
>> # User Adrian Buehlmann <adrian at cadifra.com>
>> # Date 1213965537 -7200
>> # Node ID cb720224bdf7fa50af49b04d08a81d21e46d68a3
>> # Parent  af7b26b0f884d749ae8115256c009eea4c023378
>> enable paths >260 for filelogs inside .hg on Windows (EXPERIMENTAL)
>>
>> Note: The Windows shell (explorer) will not be able to handle
>> files with paths >260 or Windows reserved names (e.g. aux.i),
>> which for example means that the .hg dir cannot be deleted or
>> copied using explorer. Winzip cannot handle these either.
> 
> Explorer *can* delete long path repos which don't contain reserved names.
> 
>> PyWin32 must be present.
>>
>> THIS PATCH IS EXPERIMENTAL ONLY, NOT INTENDED FOR INCLUSION INTO
>> OFFICIAL MERCURIAL REPOS
> 
> For those who would like to play with it themselves.
> 
> repos available for playing at:
> http://www.cadifra.com/cgi-bin/repos

I've just added http://www.cadifra.com/cgi-bin/repos/long2/ which stresses
that new util_win32.makedirs with a long dir ("LOREM_IPSUM_...")

> hgt manifest
--- running hg from W:\hg-longpath
creating file: \\?\W:\tmp\long2\.hg\requires
creating file: \\?\W:\tmp\long2\.hg\dirstate
creating file: \\?\W:\tmp\long2\.hg\store\00changelog.i
creating file: \\?\W:\tmp\long2\.hg\store\00manifest.i
creating file: \\?\W:\tmp\long2\.hg\localtags
THIS_IS_AN_INCREDIBLY_LONG_NAME_WHICH_MERCURIAL_REPOSITORIES_WILL_HAVE_A_HARD_TIME_WITH/LOREM_IPSUM_DOLOR_SIT_AMET_CONSECTETUR_ADIPISICING_ELIT_SED_DO_EIUS
MOD_TEMPOR_INCIDIDUNT/lorem.txt
THIS_IS_AN_INCREDIBLY_LONG_NAME_WHICH_MERCURIAL_REPOSITORIES_WILL_HAVE_A_HARD_TIME_WITH/THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG_THE_QUICK_BROWN_FOX_JUM
PS_A_SECOND_TIME_THE_QUICK_BROWN.txt
THIS_IS_AN_INCREDIBLY_LONG_NAME_WHICH_MERCURIAL_REPOSITORIES_WILL_HAVE_A_HARD_TIME_WITH/a.txt


More information about the Mercurial-devel mailing list