Make overwrite() arguments mandatory
authorChristian Ebert <blacktrash@gmx.net>
Mon, 07 Apr 2008 18:46:48 +0200
changeset 441 4bf8ea03d7ac
parent 440 856fde439a0a
child 442 1bb9230b055d
Make overwrite() arguments mandatory
hgkw/keyword.py
--- a/hgkw/keyword.py	Mon Apr 07 18:46:48 2008 +0200
+++ b/hgkw/keyword.py	Mon Apr 07 18:46:48 2008 +0200
@@ -171,7 +171,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()
@@ -274,7 +274,7 @@
     try:
         wlock = repo.wlock()
         lock = repo.lock()
-        kwt.overwrite(expand=expand, files=clean)
+        kwt.overwrite(None, expand, clean)
     finally:
         del wlock, lock
 
@@ -491,7 +491,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: