Commits

Yuya Nishihara  committed ff42605

don't use frozen list of user repos

  • Participants
  • Parent commits 1f7e36b

Comments (0)

Files changed (1)

File hgext/webuserdir.py

 
         def _newuserwebdir(self, user):
             userdir = getuserdir(self.ui, user)
-            try:
-                repos = hgwebdir_mod.findrepos([('~' + user, os.path.join(userdir, '**'))])
-            except OSError:
+            if not os.path.exists(userdir):
                 raise NoUserDirError
-            return origcls(repos, baseui=self.ui)
+            return origcls([('~' + user, os.path.join(userdir, '**'))],
+                           baseui=self.ui)
 
     obj.__class__ = hgwebudir