##// END OF EJS Templates
interhg: fixes regression introduced by 38170eeed18c
Wagner Bruna -
r10472:9126d13b stable
parent child Browse files
Show More
@@ -40,7 +40,7 def interhg_escape(x):
40
40
41 templatefilters.filters["escape"] = interhg_escape
41 templatefilters.filters["escape"] = interhg_escape
42
42
43 def interhg_refresh(orig, self):
43 def interhg_refresh(orig, self, *args, **kwargs):
44 interhg_table[:] = []
44 interhg_table[:] = []
45 for key, pattern in self.repo.ui.configitems('interhg'):
45 for key, pattern in self.repo.ui.configitems('interhg'):
46 # grab the delimiter from the character after the "s"
46 # grab the delimiter from the character after the "s"
@@ -75,6 +75,6 def interhg_refresh(orig, self):
75 except re.error:
75 except re.error:
76 self.repo.ui.warn(_("interhg: invalid regexp for %s: %s\n")
76 self.repo.ui.warn(_("interhg: invalid regexp for %s: %s\n")
77 % (key, regexp))
77 % (key, regexp))
78 return orig(self)
78 return orig(self, *args, **kwargs)
79
79
80 extensions.wrapfunction(hgweb_mod.hgweb, 'refresh', interhg_refresh)
80 extensions.wrapfunction(hgweb_mod.hgweb, 'refresh', interhg_refresh)
General Comments 0
You need to be logged in to leave comments. Login now