Search code examples
mercurialtortoisehgmercurialeclipse

Mercurial: Commit files with more than 255 characters path length (Windows)?


I try to commit a folder hierarchy into out Mercurial repository, which contains files, whiches absolute path length exceeds 255 characters (Windows max. path length).

For these files I receive an error message saying

The system cannot find the path specified

We use TortoiseHG and an Eclipse plugin for Mercurial, both don't work.

Has anybody found a solution for this? (I do not want to change the repository's location on my HD)


Solution

  • There exists an extension which is aimed at solving this exact problem. It is: https://www.mercurial-scm.org/wiki/Win32LongFileNamesExtension

    It uses \\?\ style names to transparently handle long files.

    I'm the author, let me know if it works for you.