Export changelog dict in localrepo.commit
authorBrendan Cully <brendan@kublai.com>
Wed, 08 Nov 2006 11:28:33 -0800
changeset 3664 cabe62800120
parent 3626 02e9355c3420
child 3665 63e173a4ffbc
Export changelog dict in localrepo.commit
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Nov 08 13:20:08 2006 -0600
+++ b/mercurial/localrepo.py	Wed Nov 08 11:28:33 2006 -0800
@@ -581,12 +581,13 @@
 
     def commit(self, files=None, text="", user=None, date=None,
                match=util.always, force=False, lock=None, wlock=None,
-               force_editor=False, p1=None, p2=None):
+               force_editor=False, p1=None, p2=None, extra={}):
 
         commit = []
         remove = []
         changed = []
         use_dirstate = (p1 is None) # not rawcommit
+        extra = extra.copy()
 
         if use_dirstate:
             if files:
@@ -693,7 +694,6 @@
         if not lines:
             return None
         text = '\n'.join(lines)
-        extra = {}
         if branchname:
             extra["branch"] = branchname
         n = self.changelog.add(mn, changed + remove, text, tr, p1, p2,