Commits

Cédric Krier committed 529ed7c

Don't duplicate repositories in hgwebdir.refresh

  • Participants
  • Parent commits 5d8af7c

Comments (0)

Files changed (1)

File hgnested/__init__.py

                 name = util.pconvert(npath)
                 if name.startswith(prefix):
                     name = name[len(prefix):]
-                self.repos.append((name.lstrip('/'), npath))
+                repo = (name.lstrip('/'), npath)
+                if repo not in self.repos:
+                    self.repos.append(repo)
     self.lastrefresh = time.time()
 
 hgweb.hgwebdir_mod.hgwebdir.refresh = _hgwebdir_refresh