diff mercurial/util.py @ 5151:9374373fb727

util: ignore invalid path errors in path_auditor.
author Patrick Mezard <pmezard@gmail.com>
date Mon, 13 Aug 2007 19:42:50 +0200
parents d84329a11fdd
children c7e8fe11f34a
line wrap: on
line diff
--- 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):