Mercurial > hg-stable
changeset 10967:479f15f3faa9
keyword: monkeypatch patch so that optional args can be passed as kwargs
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 17 Apr 2010 13:38:42 -0500 |
parents | 91c58cf54eee |
children | 7a0d096e221e |
files | hgext/keyword.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Sat Apr 17 13:23:24 2010 -0500 +++ b/hgext/keyword.py Sat Apr 17 13:38:42 2010 -0500 @@ -471,10 +471,10 @@ # monkeypatches def kwpatchfile_init(orig, self, ui, fname, opener, - missing=False, eol=None): + missing=False, eolmode=None): '''Monkeypatch/wrap patch.patchfile.__init__ to avoid rejects or conflicts due to expanded keywords in working dir.''' - orig(self, ui, fname, opener, missing, eol) + orig(self, ui, fname, opener, missing, eolmode) # shrink keywords read from working dir self.lines = kwt.shrinklines(self.fname, self.lines)