hgkw/keyword.py
branchstable
changeset 603 474063ef3f3d
parent 602 b21fe4c86037
child 604 75621fa839fb
equal deleted inserted replaced
601:b5eb8a9938aa 603:474063ef3f3d
   493                 return n
   493                 return n
   494             finally:
   494             finally:
   495                 release(lock, wlock)
   495                 release(lock, wlock)
   496 
   496 
   497     # monkeypatches
   497     # monkeypatches
   498     def kwpatchfile_init(orig, self, ui, fname, opener, missing=False, eol=None):
   498     def kwpatchfile_init(orig, self, ui, fname, opener,
       
   499                          missing=False, eol=None):
   499         '''Monkeypatch/wrap patch.patchfile.__init__ to avoid
   500         '''Monkeypatch/wrap patch.patchfile.__init__ to avoid
   500         rejects or conflicts due to expanded keywords in working dir.'''
   501         rejects or conflicts due to expanded keywords in working dir.'''
   501         orig(self, ui, fname, opener, missing, eol)
   502         orig(self, ui, fname, opener, missing, eol)
   502         # shrink keywords read from working dir
   503         # shrink keywords read from working dir
   503         self.lines = kwt.shrinklines(self.fname, self.lines)
   504         self.lines = kwt.shrinklines(self.fname, self.lines)