Mercurial > hg
changeset 3664:cabe62800120
Export changelog dict in localrepo.commit
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 08 Nov 2006 11:28:33 -0800 |
parents | 02e9355c3420 |
children | 63e173a4ffbc |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,