# HG changeset patch # User Christian Ebert # Date 1202545873 -3600 # Node ID 05fbd226cb5c073fdd65681e613fbd79d9691619 # Parent ecb2935f9bb896e4a4103856649f623f3a4e04ad (0.9.2compat) make patchfile monkey work with 0.9.5 diff -r ecb2935f9bb8 -r 05fbd226cb5c hgkw/keyword.py --- 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))