changeset 6505:7ae26bb2d5cc

keyword: make overwrite() arguments mandatory
author Christian Ebert <blacktrash@gmx.net>
date Wed, 09 Apr 2008 14:05:57 +0200
parents 1be53f931c9c
children 850071c017fa
files hgext/keyword.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Wed Apr 09 14:05:57 2008 +0200
+++ b/hgext/keyword.py	Wed Apr 09 14:05:57 2008 +0200
@@ -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: