--- a/hgkw/keyword.py Sun Sep 02 15:35:18 2007 +0200
+++ b/hgkw/keyword.py Sun Sep 02 15:46:18 2007 +0200
@@ -181,11 +181,11 @@
def _changeset_templater(self):
'''Backwards compatible cmdutil.changeset_templater.'''
+ # before 1e0b94cfba0e there was an extra "brinfo" argument
try:
return cmdutil.changeset_templater(self.ui, self.repo,
False, '', False)
except TypeError:
- # depending on hg rev changeset_templater has extra "brinfo" arg
return cmdutil.changeset_templater(self.ui, self.repo,
False, None, '', False)
@@ -200,11 +200,11 @@
def _normal(self, files):
'''Backwards compatible repo.dirstate.normal/update.'''
+ # 6fd953d5faea introduced dirstate.normal()
try:
for f in files:
self.repo.dirstate.normal(f)
except AttributeError:
- # older versions don't know about dirstate.normal
self.repo.dirstate.update(files, 'n')
def _ctxnode(self, node):