# HG changeset patch # User Patrick Mezard # Date 1187026970 -7200 # Node ID 9374373fb72743030079d79acd529d3738336198 # Parent 4ed58fe4fe13c24845e9fd53f2873bbfe393c8d7 util: ignore invalid path errors in path_auditor. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -708,7 +708,9 @@ class path_auditor(object): try: st = os.lstat(curpath) except OSError, err: - if err.errno != errno.ENOENT: + # EINVAL can be raised as invalid path syntax under win32. + # They must be ignored for patterns can be checked too. + if err.errno not in (errno.ENOENT, errno.EINVAL): raise else: if stat.S_ISLNK(st.st_mode):