# HG changeset patch # User Christian Ebert # Date 2008-04-09 12:05:57 # Node ID 7ae26bb2d5cc3067043024b77081232ed9b18e33 # Parent 1be53f931c9c8d937835ba37db669191b2df360c keyword: make overwrite() arguments mandatory diff --git a/hgext/keyword.py b/hgext/keyword.py --- a/hgext/keyword.py +++ b/hgext/keyword.py @@ -169,7 +169,7 @@ class kwtemplater(object): Caveat: localrepository._link fails on Windows.''' return self.matcher(path) and not islink(path) - def overwrite(self, node=None, expand=True, files=None): + def overwrite(self, node, expand, files): '''Overwrites selected files expanding/shrinking keywords.''' ctx = self.repo.changectx(node) mf = ctx.manifest() @@ -272,7 +272,7 @@ def _kwfwrite(ui, repo, expand, *pats, * try: wlock = repo.wlock() lock = repo.lock() - kwt.overwrite(expand=expand, files=clean) + kwt.overwrite(None, expand, clean) finally: del wlock, lock @@ -489,7 +489,7 @@ def reposetup(ui, repo): for name, cmd in commithooks.iteritems(): ui.setconfig('hooks', name, cmd) if n is not None: - kwt.overwrite(node=n) + kwt.overwrite(n, True, None) repo.hook('commit', node=n, parent1=_p1, parent2=_p2) return n finally: