[PATCH 4 of 5] keyword: make overwrite() arguments mandatory
Christian Ebert
blacktrash at gmx.net
Wed Apr 9 12:15:52 UTC 2008
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1207742757 -7200
# Node ID dbf8a399a3543283ea6b08cbf2eab7de379e174d
# Parent fa9fb8ff7c21b5bb0cbe39575e239c57ace0199f
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 @@
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 @@
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 @@
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:
More information about the Mercurial-devel
mailing list