mercurial/merge.py
changeset 48746 18e69f224e4b
parent 48716 f1eb77dceb36
child 48757 af9f2c64302e
equal deleted inserted replaced
48745:94e36b230990 48746:18e69f224e4b
   517         elif not branchmerge:
   517         elif not branchmerge:
   518             mresult.removefile(f)  # just updating, ignore changes outside clone
   518             mresult.removefile(f)  # just updating, ignore changes outside clone
   519         elif action[0].no_op:
   519         elif action[0].no_op:
   520             mresult.removefile(f)  # merge does not affect file
   520             mresult.removefile(f)  # merge does not affect file
   521         elif action[0].narrow_safe:
   521         elif action[0].narrow_safe:
   522             if (
   522             if not f.endswith(b'/'):
   523                 not f.endswith(b'/')
       
   524                 and action[0].changes == mergestatemod.CHANGE_MODIFIED
       
   525             ):
       
   526                 mresult.removefile(f)  # merge won't affect on-disk files
   523                 mresult.removefile(f)  # merge won't affect on-disk files
   527 
   524 
   528                 mresult.addcommitinfo(
   525                 mresult.addcommitinfo(
   529                     f, b'outside-narrow-merge-action', action[0].changes
   526                     f, b'outside-narrow-merge-action', action[0].changes
   530                 )
   527                 )