##// END OF EJS Templates
commands: use dirstateguard instead of begin/end-parentchange for backout...
FUJIWARA Katsunori -
r26581:6e715040 default
parent child Browse files
Show More
@@ -547,14 +547,14 b' def backout(ui, repo, node=None, rev=Non'
547 547 bheads = repo.branchheads(branch)
548 548 rctx = scmutil.revsingle(repo, hex(parent))
549 549 if not opts.get('merge') and op1 != node:
550 dsguard = cmdutil.dirstateguard(repo, 'backout')
550 551 try:
551 552 ui.setconfig('ui', 'forcemerge', opts.get('tool', ''),
552 553 'backout')
553 repo.dirstate.beginparentchange()
554 554 stats = mergemod.update(repo, parent, True, True, False,
555 555 node, False)
556 556 repo.setparents(op1, op2)
557 repo.dirstate.endparentchange()
557 dsguard.close()
558 558 hg._showstats(repo, stats)
559 559 if stats[3]:
560 560 repo.ui.status(_("use 'hg resolve' to retry unresolved "
@@ -567,6 +567,7 b' def backout(ui, repo, node=None, rev=Non'
567 567 return 0
568 568 finally:
569 569 ui.setconfig('ui', 'forcemerge', '', '')
570 lockmod.release(dsguard)
570 571 else:
571 572 hg.clean(repo, node, show_stats=False)
572 573 repo.dirstate.setbranch(branch)
General Comments 0
You need to be logged in to leave comments. Login now