[Bug 5299] New: Purge can't delete files with long paths on Windows

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 15 13:37:32 EDT 2016


            Bug ID: 5299
           Summary: Purge can't delete files with long paths on Windows
           Product: Mercurial
           Version: 3.8.4
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: purge
          Assignee: bugzilla at selenic.com
          Reporter: gabor.stefanik at nng.com
                CC: mercurial-devel at selenic.com

Purge uses util.unlink to delete files on Windows, which uses ANSI APIs that
are affected by the MAX_PATH limit. Thus, it fails to delete a file with a
160-character name inside a 160-character folder.

This can be worked around by using UNC paths and the corresponding Unicode API.
(IIRC Python uses the Unicode API calls if a Unicode string is passed to

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list