Mercurial > hg
diff hgext/keyword.py @ 7391:27d304c8cc03
patch: pass an opener to patchfile
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 19 Nov 2008 13:27:57 +0100 |
parents | 8dde275680d8 |
children | d3f1d316b72b |
line wrap: on
line diff
--- a/hgext/keyword.py Tue Nov 18 13:20:55 2008 +0100 +++ b/hgext/keyword.py Wed Nov 19 13:27:57 2008 +0100 @@ -487,10 +487,10 @@ del wlock, lock # monkeypatches - def kwpatchfile_init(orig, self, ui, fname, missing=False): + def kwpatchfile_init(orig, self, ui, fname, opener, missing=False): '''Monkeypatch/wrap patch.patchfile.__init__ to avoid rejects or conflicts due to expanded keywords in working dir.''' - orig(self, ui, fname, missing) + orig(self, ui, fname, opener, missing) # shrink keywords read from working dir self.lines = kwt.shrinklines(self.fname, self.lines)