hgkw/keyword.py
branchstable
changeset 577 0cdbdf79d5e9
parent 573 197aeca9108a
child 579 1dc66cff9dd5
equal deleted inserted replaced
573:197aeca9108a 577:0cdbdf79d5e9
   483                 return n
   483                 return n
   484             finally:
   484             finally:
   485                 release(lock, wlock)
   485                 release(lock, wlock)
   486 
   486 
   487     # monkeypatches
   487     # monkeypatches
   488     def kwpatchfile_init(orig, self, ui, fname, opener, missing=False):
   488     def kwpatchfile_init(orig, self, ui, fname, opener, missing=False, eol=None):
   489         '''Monkeypatch/wrap patch.patchfile.__init__ to avoid
   489         '''Monkeypatch/wrap patch.patchfile.__init__ to avoid
   490         rejects or conflicts due to expanded keywords in working dir.'''
   490         rejects or conflicts due to expanded keywords in working dir.'''
   491         orig(self, ui, fname, opener, missing)
   491         orig(self, ui, fname, opener, missing, eol)
   492         # shrink keywords read from working dir
   492         # shrink keywords read from working dir
   493         self.lines = kwt.shrinklines(self.fname, self.lines)
   493         self.lines = kwt.shrinklines(self.fname, self.lines)
   494 
   494 
   495     def kw_diff(orig, repo, node1=None, node2=None, match=None, changes=None,
   495     def kw_diff(orig, repo, node1=None, node2=None, match=None, changes=None,
   496                 opts=None):
   496                 opts=None):