--- a/hgkw/keyword.py Mon Apr 07 18:46:48 2008 +0200
+++ b/hgkw/keyword.py Mon Apr 07 18:46:48 2008 +0200
@@ -243,7 +243,7 @@
def add(self, text, meta, tr, link, p1=None, p2=None):
'''Removes keyword substitutions when adding to filelog.'''
text = self.kwt.shrink(self.path, text)
- return super(kwfilelog, self).add(text, meta, tr, link, p1=p1, p2=p2)
+ return super(kwfilelog, self).add(text, meta, tr, link, p1, p2)
def cmp(self, node, text):
'''Removes keyword substitutions for comparison.'''
@@ -483,20 +483,17 @@
else:
_p2 = hex(_p2)
- node = super(kwrepo,
- self).commit(files=files, text=text, user=user,
- date=date, match=match, force=force,
- force_editor=force_editor,
- p1=p1, p2=p2, extra=extra,
- empty_ok=empty_ok)
+ n = super(kwrepo, self).commit(files, text, user, date, match,
+ force, force_editor, p1, p2,
+ extra, empty_ok)
# restore commit hooks
for name, cmd in commithooks.iteritems():
ui.setconfig('hooks', name, cmd)
- if node is not None:
- kwt.overwrite(node=node)
- repo.hook('commit', node=node, parent1=_p1, parent2=_p2)
- return node
+ if n is not None:
+ kwt.overwrite(node=n)
+ repo.hook('commit', node=n, parent1=_p1, parent2=_p2)
+ return n
finally:
del wlock, lock
@@ -504,7 +501,7 @@
def kwpatchfile_init(self, ui, fname, missing=False):
'''Monkeypatch/wrap patch.patchfile.__init__ to avoid
rejects or conflicts due to expanded keywords in working dir.'''
- patchfile_init(self, ui, fname, missing=missing)
+ patchfile_init(self, ui, fname, missing)
# shrink keywords read from working dir
self.lines = kwt.shrinklines(self.fname, self.lines)
@@ -516,8 +513,7 @@
kwt.matcher = util.never
elif node1 is not None and node1 != repo.changectx().node():
kwt.restrict = True
- patch_diff(repo, node1=node1, node2=node2, files=files, match=match,
- fp=fp, changes=changes, opts=opts)
+ patch_diff(repo, node1, node2, files, match, fp, changes, opts)
def kwweb_changeset(web, req, tmpl):
'''Wraps webcommands.changeset turning off keyword expansion.'''