interhg: fixes regression introduced by 38170eeed18c stable
authorWagner Bruna <wbruna@yahoo.com>
Sat, 06 Feb 2010 21:25:02 -0200
branchstable
changeset 10472 9126d13bad7a
parent 10471 132eb7128ad5
child 10473 634b0e7561ec
interhg: fixes regression introduced by 38170eeed18c
hgext/interhg.py
--- a/hgext/interhg.py	Sun Feb 14 17:09:52 2010 +0100
+++ b/hgext/interhg.py	Sat Feb 06 21:25:02 2010 -0200
@@ -40,7 +40,7 @@
 
 templatefilters.filters["escape"] = interhg_escape
 
-def interhg_refresh(orig, self):
+def interhg_refresh(orig, self, *args, **kwargs):
     interhg_table[:] = []
     for key, pattern in self.repo.ui.configitems('interhg'):
         # grab the delimiter from the character after the "s"
@@ -75,6 +75,6 @@
         except re.error:
             self.repo.ui.warn(_("interhg: invalid regexp for %s: %s\n")
                               % (key, regexp))
-    return orig(self)
+    return orig(self, *args, **kwargs)
 
 extensions.wrapfunction(hgweb_mod.hgweb, 'refresh', interhg_refresh)