Mercurial > hg
changeset 26869:412e8c5e38b4
rebase: pass date parameter to concludenode
author | Stanislau Hlebik <stash@fb.com> |
---|---|
date | Mon, 26 Oct 2015 02:35:48 -0700 |
parents | a2aa39a725a1 |
children | ab798d1a230f |
files | hgext/rebase.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/rebase.py Mon Oct 26 02:22:26 2015 -0700 +++ b/hgext/rebase.py Mon Oct 26 02:35:48 2015 -0700 @@ -220,6 +220,7 @@ abortf = opts.get('abort') collapsef = opts.get('collapse', False) collapsemsg = cmdutil.logmessage(ui, opts) + date = opts.get('date', None) e = opts.get('extrafn') # internal, used by e.g. hgsubversion extrafns = [_savegraft] if e: @@ -454,7 +455,8 @@ editor = cmdutil.getcommiteditor(editform=editform, **opts) newnode = concludenode(repo, rev, p1, p2, extrafn=extrafn, editor=editor, - keepbranches=keepbranchesf) + keepbranches=keepbranchesf, + date=date) else: # Skip commit if we are collapsing repo.dirstate.beginparentchange() @@ -505,7 +507,8 @@ editor = cmdutil.getcommiteditor(edit=editopt, editform=editform) newnode = concludenode(repo, rev, p1, external, commitmsg=commitmsg, extrafn=extrafn, editor=editor, - keepbranches=keepbranchesf) + keepbranches=keepbranchesf, + date=date) if newnode is None: newrev = target else: