changeset 8711:1b95c6f13155

mq: fix commit prototype
author Matt Mackall <mpm@selenic.com>
date Wed, 03 Jun 2009 17:07:41 -0500
parents bcb6e5bebd93
children dd3ebf81af43
files hgext/mq.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Mon Jun 01 22:13:08 2009 -0500
+++ b/hgext/mq.py	Wed Jun 03 17:07:41 2009 -0500
@@ -2413,16 +2413,14 @@
                 if parent in [s.rev for s in self.mq.applied]:
                     raise util.Abort(errmsg)
 
-        def commit(self, *args, **opts):
-            if len(args) >= 6:
-                force = args[5]
-            else:
-                force = opts.get('force')
+        def commit(self, text="", user=None, date=None, match=None,
+                   force=False, editor=False, extra={}):
             self.abort_if_wdir_patched(
                 _('cannot commit over an applied mq patch'),
                 force)
 
-            return super(mqrepo, self).commit(*args, **opts)
+            return super(mqrepo, self).commit(text, user, date, match, force,
+                                              editor, extra)
 
         def push(self, remote, force=False, revs=None):
             if self.mq.applied and not force and not revs: