mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
commands: get rid of empty try/finally block from _dobackout
This diff is purely an indentation change to clean up a block that was kept in place to make 4645e52058b4 easier to read.
This commit is contained in:
parent
459e92e905
commit
eff9c7d54a
@ -632,7 +632,6 @@ def _dobackout(ui, repo, node=None, rev=None, commit=False, **opts):
|
||||
parent = p1
|
||||
|
||||
# the backout should appear on the same branch
|
||||
try:
|
||||
branch = repo.dirstate.branch()
|
||||
bheads = repo.branchheads(branch)
|
||||
rctx = scmutil.revsingle(repo, hex(parent))
|
||||
@ -692,10 +691,6 @@ def _dobackout(ui, repo, node=None, rev=None, commit=False, **opts):
|
||||
return hg.merge(repo, hex(repo.changelog.tip()))
|
||||
finally:
|
||||
ui.setconfig('ui', 'forcemerge', '', '')
|
||||
finally:
|
||||
# TODO: get rid of this meaningless try/finally enclosing.
|
||||
# this is kept only to reduce changes in a patch.
|
||||
pass
|
||||
return 0
|
||||
|
||||
@command('bisect',
|
||||
|
Loading…
Reference in New Issue
Block a user