--- a/hgkw/keyword.py Fri Feb 08 10:14:47 2008 +0100
+++ b/hgkw/keyword.py Sat Feb 09 09:31:13 2008 +0100
@@ -145,7 +145,11 @@
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)
+ try:
+ _patchfile_init(self, ui, fname, missing=missing)
+ except TypeError:
+ # "missing" arg added in e90e72c6b4c7
+ _patchfile_init(self, ui, fname)
if _kwtemplater.matcher(self.fname):
# shrink keywords read from working dir
kwshrunk = _kwtemplater.shrink(''.join(self.lines))