changeset 216:f0074b902cbd

Prepare for extra keywords in repo.commit()
author Franz Glasner <hg@dom66.de>
date Wed, 17 Oct 2018 17:25:36 +0200
parents 247698996b36
children d5db5da1c411
files extensions/timestamps.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/timestamps.py	Wed Oct 17 15:35:06 2018 +0200
+++ b/extensions/timestamps.py	Wed Oct 17 17:25:36 2018 +0200
@@ -685,7 +685,7 @@
     class TimestampedRepo(repo.__class__):
 
         def commit(self, text="", user=None, date=None, match=None,
-                   force=False, editor=False, extra=None):
+                   force=False, editor=False, extra=None, **kwds):
             wctx = self[None]
             tsmatch = gen_matcher(self, wctx)
             if tsmatch is not None:
@@ -774,6 +774,7 @@
                                                        match=match,
                                                        force=force,
                                                        editor=editor,
-                                                       extra=extra)
+                                                       extra=extra,
+                                                       **kwds)
 
     repo.__class__ = TimestampedRepo