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

Adrian Buehlmann adrian at cadifra.com
Sat Jun 21 13:29:13 CDT 2008


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)

I've whipped up a preliminary python script "winrm.py" which can delete
long path trees on Windows:

Available here:
http://www.cadifra.com/cgi-bin/repos/winrm/file/tip/winrm.py

Disclaimer:
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

Usage:
python winrm.py C:\path\to\directory

without option -y, it will do a dry run only, listing the
files and directories it will delete if you call it with -y.

The path must be specified as a *full* path (including drive specifier).

No documentation available yet (see the source).

With this script, local clones of for example:

http://www.cadifra.com/cgi-bin/repos/long2/
http://www.cadifra.com/cgi-bin/repos/auxtest2/

can be removed. explorer.exe cannot these.



More information about the Mercurial-devel mailing list