Submitter | phabricator |
---|---|
Date | March 12, 2021, 6:08 p.m. |
Message ID | <differential-rev-PHID-DREV-scd4fqwuluz2tsngo3mj-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/48480/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -321,9 +321,10 @@ fullpath = os.path.join(cachedir, target) open(fullpath, b'w').close() except IOError as inst: - if ( - inst[0] == errno.EACCES - ): # pytype: disable=unsupported-operands + # pytype: disable=unsupported-operands + if inst[0] == errno.EACCES: + # pytype: enable=unsupported-operands + # If we can't write to cachedir, just pretend # that the fs is readonly and by association # that the fs won't support symlinks. This