mercurial/filemerge.py
branchstable
changeset 12046 8e7960feb139
parent 12008 fad5ed0ff997
child 12047 dee1901a0ed8
equal deleted inserted replaced
12039:18e1e7520b67 12046:8e7960feb139
   223             lambda x: '"%s"' % util.localpath(replace[x.group()[1:]]), args)
   223             lambda x: '"%s"' % util.localpath(replace[x.group()[1:]]), args)
   224         r = util.system(toolpath + ' ' + args, cwd=repo.root, environ=env)
   224         r = util.system(toolpath + ' ' + args, cwd=repo.root, environ=env)
   225 
   225 
   226     if not r and (_toolbool(ui, tool, "checkconflicts") or
   226     if not r and (_toolbool(ui, tool, "checkconflicts") or
   227                   'conflicts' in _toollist(ui, tool, "check")):
   227                   'conflicts' in _toollist(ui, tool, "check")):
   228         if re.match("^(<<<<<<< .*|=======|>>>>>>> .*)$", fcd.data()):
   228         if re.search("^(<<<<<<< .*|=======|>>>>>>> .*)$", fcd.data(),
       
   229                      re.MULTILINE):
   229             r = 1
   230             r = 1
   230 
   231 
   231     checked = False
   232     checked = False
   232     if 'prompt' in _toollist(ui, tool, "check"):
   233     if 'prompt' in _toollist(ui, tool, "check"):
   233         checked = True
   234         checked = True