593 return ret |
593 return ret |
594 finally: |
594 finally: |
595 wlock.release() |
595 wlock.release() |
596 |
596 |
597 # monkeypatches |
597 # monkeypatches |
598 def kwpatchfile_init(orig, self, ui, fname, backend, store, mode, create, |
598 def kwpatchfile_init(orig, self, ui, gp, backend, store, eolmode=None): |
599 remove, eolmode=None, copysource=None): |
|
600 '''Monkeypatch/wrap patch.patchfile.__init__ to avoid |
599 '''Monkeypatch/wrap patch.patchfile.__init__ to avoid |
601 rejects or conflicts due to expanded keywords in working dir.''' |
600 rejects or conflicts due to expanded keywords in working dir.''' |
602 orig(self, ui, fname, backend, store, mode, create, remove, |
601 orig(self, ui, gp, backend, store, eolmode) |
603 eolmode, copysource) |
|
604 # shrink keywords read from working dir |
602 # shrink keywords read from working dir |
605 self.lines = kwt.shrinklines(self.fname, self.lines) |
603 self.lines = kwt.shrinklines(self.fname, self.lines) |
606 |
604 |
607 def kw_diff(orig, repo, node1=None, node2=None, match=None, changes=None, |
605 def kw_diff(orig, repo, node1=None, node2=None, match=None, changes=None, |
608 opts=None, prefix=''): |
606 opts=None, prefix=''): |