[PATCH] enable long/reserved paths on Windows (EXPERIMENTAL)

Adrian Buehlmann adrian at cadifra.com
Tue Jun 24 12:52:00 CDT 2008


On 24.06.2008 19:38, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1214326991 -7200
> # Node ID bee7843ebe514828cdd0e0041d51526ce236127f
> # Parent  af7b26b0f884d749ae8115256c009eea4c023378
> enable long/reserved paths on Windows (EXPERIMENTAL)
> 
> THIS PATCH IS EXPERIMENTAL ONLY, NOT INTENDED FOR INCLUSION INTO
> OFFICIAL MERCURIAL REPOS
> 

This is an intermediate state of what I have achieved.

The following currently works (for long path/reserved names repos):

* hg clone from remote http to NTFS and FAT32 memory stick
* hardlink hg clone on NTFS
* hg clone from NTFS to FAT32 memory stick
* hg update
* hg status
* hg bundle/unbundle
* hg verify

and probably other things I haven't tried yet.

Use http://www.cadifra.com/cgi-bin/repos/winrm/file/tip/winrm.py
to remove long path repos.

Repos for playing: http://www.cadifra.com/cgi-bin/repos

Known Problems:
I cannot write the tempfiles inside the store during pull,
because Python module "tempfile" seems to really hate long paths.
So I use the default location for creating temporary files
for now.


More information about the Mercurial-devel mailing list