changeset 13796:6337149fc07c

hgwebdir: handle IOErrors from localrepo while enumerating Repository() raises a number of IOErrors in addition to RepoErrors. these are just as uninteresting as RepoErrors and should be ignored The easiest case of this is a repo whose .hg/ directory is -rx
author timeless@gmail.com
date Tue, 29 Mar 2011 16:33:10 +0000
parents 43b5fe18ea6c
children 16d5e80876de
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Mar 28 15:54:22 2011 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Tue Mar 29 16:33:10 2011 +0000
@@ -251,6 +251,9 @@
                 # update time with local timezone
                 try:
                     r = hg.repository(self.ui, path)
+                except IOError:
+                    u.warn(_('error accessing repository at %s\n') % path)
+                    continue
                 except error.RepoError:
                     u.warn(_('error accessing repository at %s\n') % path)
                     continue