Commits

Cédric Krier committed 71ab624

Return directly in hgwebdir refresh if interval is not consumed

  • Participants
  • Parent commits 8977c74

Comments (0)

Files changed (1)

File hgnested/__init__.py

 _hgwebdir_refresh_parent = hgweb.hgwebdir_mod.hgwebdir.refresh
 
 def _hgwebdir_refresh(self):
+    if self.lastrefresh + self.refreshinterval > time.time():
+        return
     _hgwebdir_refresh_parent(self)
     for prefix, root in self.ui.configitems('collections'):
         prefix = util.pconvert(prefix)