diff -r 15d3facfa40a -r aaad36b88298 mercurial/commands.py --- a/mercurial/commands.py Sun Jan 13 20:13:22 2019 -0500 +++ b/mercurial/commands.py Wed Feb 20 19:28:51 2019 -0500 @@ -1676,8 +1676,8 @@ if not bheads: raise error.Abort(_('can only close branch heads')) elif opts.get('amend'): - if repo['.'].p1().branch() != branch and \ - repo['.'].p2().branch() != branch: + if (repo['.'].p1().branch() != branch and + repo['.'].p2().branch() != branch): raise error.Abort(_('can only close branch heads')) if opts.get('amend'): @@ -4822,8 +4822,8 @@ opts = pycompat.byteskwargs(opts) confirm = ui.configbool('commands', 'resolve.confirm') flaglist = 'all mark unmark list no_status re_merge'.split() - all, mark, unmark, show, nostatus, remerge = \ - [opts.get(o) for o in flaglist] + all, mark, unmark, show, nostatus, remerge = [ + opts.get(o) for o in flaglist] actioncount = len(list(filter(None, [show, mark, unmark, remerge]))) if actioncount > 1: @@ -4952,8 +4952,8 @@ if mark: if markcheck: fdata = repo.wvfs.tryread(f) - if filemerge.hasconflictmarkers(fdata) and \ - ms[f] != mergemod.MERGE_RECORD_RESOLVED: + if (filemerge.hasconflictmarkers(fdata) and + ms[f] != mergemod.MERGE_RECORD_RESOLVED): hasconflictmarkers.append(f) ms.mark(f, mergemod.MERGE_RECORD_RESOLVED) elif unmark: