##// END OF EJS Templates
rebase: add date parameter to concludenode function...
Stanislau Hlebik -
r26868:a2aa39a7 default
parent child Browse files
Show More
@@ -586,7 +586,7 b' def externalparent(repo, state, targetan'
586 586 ', '.join(str(p) for p in sorted(parents))))
587 587
588 588 def concludenode(repo, rev, p1, p2, commitmsg=None, editor=None, extrafn=None,
589 keepbranches=False):
589 keepbranches=False, date=None):
590 590 '''Commit the wd changes with parents p1 and p2. Reuse commit info from rev
591 591 but also store useful information in extra.
592 592 Return node of committed revision.'''
@@ -608,8 +608,10 b' def concludenode(repo, rev, p1, p2, comm'
608 608 if keepbranch:
609 609 repo.ui.setconfig('ui', 'allowemptycommit', True)
610 610 # Commit might fail if unresolved files exist
611 if date is None:
612 date = ctx.date()
611 613 newnode = repo.commit(text=commitmsg, user=ctx.user(),
612 date=ctx.date(), extra=extra, editor=editor)
614 date=date, extra=extra, editor=editor)
613 615 finally:
614 616 repo.ui.restoreconfig(backup)
615 617
General Comments 0
You need to be logged in to leave comments. Login now