Skip to content
Snippets Groups Projects
Commit 774f9271 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

fileset: suppress EACCES while reading arbitrary paths via filectx API

On Windows, EACCES is raised in place of EISDIR. This patch simply adds
EACCES to the list of errors to be ignored since I think it's okay for
filesets to treat inaccessible working-copy files as not existing.
parent d49e490a
No related branches found
No related tags found
No related merge requests found
......@@ -592,7 +592,9 @@
try:
return predfn(fctx)
except (IOError, OSError) as e:
if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EISDIR):
# open()-ing a directory fails with EACCES on Windows
if e.errno in (errno.ENOENT, errno.EACCES, errno.ENOTDIR,
errno.EISDIR):
return False
raise
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment