comparison mercurial/merge.py @ 48701:85c69b0dfa8f

merge: break up a not-so-one-liner for readability (even if not fully satisfied this time) Differential Revision: https://phab.mercurial-scm.org/D12104
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 28 Jan 2022 14:24:30 +0100
parents d8577d00c023
children ec23b0ba85c2
comparison
equal deleted inserted replaced
48700:d8577d00c023 48701:85c69b0dfa8f
528 elif not branchmerge: 528 elif not branchmerge:
529 mresult.removefile(f) # just updating, ignore changes outside clone 529 mresult.removefile(f) # just updating, ignore changes outside clone
530 elif action[0] in mergestatemod.NO_OP_ACTIONS: 530 elif action[0] in mergestatemod.NO_OP_ACTIONS:
531 mresult.removefile(f) # merge does not affect file 531 mresult.removefile(f) # merge does not affect file
532 elif action[0] in nonconflicttypes: 532 elif action[0] in nonconflicttypes:
533 raise error.Abort( 533 msg = _(
534 _( 534 b'merge affects file \'%s\' outside narrow, '
535 b'merge affects file \'%s\' outside narrow, ' 535 b'which is not yet supported'
536 b'which is not yet supported'
537 )
538 % f,
539 hint=_(b'merging in the other direction may work'),
540 ) 536 )
537 hint = _(b'merging in the other direction may work')
538 raise error.Abort(msg % f, hint=hint)
541 else: 539 else:
542 raise error.StateError( 540 raise error.StateError(
543 _(b'conflict in file \'%s\' is outside narrow clone') % f 541 _(b'conflict in file \'%s\' is outside narrow clone') % f
544 ) 542 )
545 543