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