mercurial/filemerge.py
changeset 46356 0c95b59a89f1
parent 46139 3ca5ca380a34
child 46365 63dfaca9087f
equal deleted inserted replaced
46355:98e3a693061a 46356:0c95b59a89f1
  1193     # default action is 'continue', in which case we neither prompt nor halt
  1193     # default action is 'continue', in which case we neither prompt nor halt
  1194 
  1194 
  1195 
  1195 
  1196 def hasconflictmarkers(data):
  1196 def hasconflictmarkers(data):
  1197     return bool(
  1197     return bool(
  1198         re.search(b"^(<<<<<<< .*|=======|>>>>>>> .*)$", data, re.MULTILINE)
  1198         re.search(
       
  1199             br"^(<<<<<<<.*|=======.*|------- .*|\+\+\+\+\+\+\+ .*|>>>>>>>.*)$",
       
  1200             data,
       
  1201             re.MULTILINE,
       
  1202         )
  1199     )
  1203     )
  1200 
  1204 
  1201 
  1205 
  1202 def _check(repo, r, ui, tool, fcd, files):
  1206 def _check(repo, r, ui, tool, fcd, files):
  1203     fd = fcd.path()
  1207     fd = fcd.path()