Mercurial > hg
changeset 5162: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 | 4ed58fe4fe13 |
children | b51d07ed1b18 |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Sun Aug 12 12:43:52 2007 -0300 +++ b/mercurial/util.py Mon Aug 13 19:42:50 2007 +0200 @@ -708,7 +708,9 @@ 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):