[Updated] D12100: obsolete: make sure windows tests pass when stat() is given a URL
av6 (Anton Shestakov)
phabricator at mercurial-scm.org
Thu Feb 3 16:51:55 UTC 2022
Closed by commit rHG4507bc001365: obsolete: make sure windows tests pass when stat() is given a URL (authored by av6).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12100?vs=31996&id=32044
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12100/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12100
AFFECTED FILES
mercurial/obsolete.py
CHANGE DETAILS
diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -583,7 +583,7 @@
try:
return self.svfs.stat(b'obsstore').st_size > 1
except OSError as inst:
- if inst.errno != errno.ENOENT:
+ if inst.errno not in (errno.ENOENT, errno.EINVAL):
raise
# just build an empty _all list if no obsstore exists, which
# avoids further stat() syscalls
To: av6, #hg-reviewers, marmoute, Alphare
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220203/be75b322/attachment-0002.html>
More information about the Mercurial-patches
mailing list