comparison hgext/keyword.py @ 9013:21b29f4c7c9f

keyword: break overlong line
author Christian Ebert <blacktrash@gmx.net>
date Mon, 29 Jun 2009 23:46:28 +0200
parents 23e941d7f507
children 8c441691d414
comparison
equal deleted inserted replaced
9012:ada93c6bf554 9013:21b29f4c7c9f
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)