Mercurial > hg
changeset 26552:4caf143313a8
extract: assign user to 'data' earlier
This is used in both case, we can assign it once.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 06 Oct 2015 02:07:33 -0700 |
parents | 5b8faea8b509 |
children | 89b806a09a66 |
files | mercurial/patch.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/patch.py Tue Oct 06 02:06:36 2015 -0700 +++ b/mercurial/patch.py Tue Oct 06 02:07:33 2015 -0700 @@ -262,10 +262,10 @@ if subject and not message.startswith(subject): message = '%s\n%s' % (subject, message) data['message'] = message + data['user'] = user tmpfp.close() if not diffs_seen: os.unlink(tmpname) - data['user'] = user data['date'] = date return data @@ -275,7 +275,6 @@ data['p2'] = parents.pop(0) data['filename'] = tmpname - data['user'] = user data['date'] = date data['nodeid'] = nodeid return data