mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Fix merge-tools.checkconflicts
re.match only looks at the beginning of the merged file, and without re.MULTILINE the file had to end with ">>>>>>> something". Now conflict markers inside the file are found, too.
This commit is contained in:
parent
60627b799a
commit
d83b895da6
@ -225,7 +225,8 @@ def filemerge(repo, mynode, orig, fcd, fco, fca):
|
||||
|
||||
if not r and (_toolbool(ui, tool, "checkconflicts") or
|
||||
'conflicts' in _toollist(ui, tool, "check")):
|
||||
if re.match("^(<<<<<<< .*|=======|>>>>>>> .*)$", fcd.data()):
|
||||
if re.search("^(<<<<<<< .*|=======|>>>>>>> .*)$", fcd.data(),
|
||||
re.MULTILINE):
|
||||
r = 1
|
||||
|
||||
checked = False
|
||||
|
Loading…
Reference in New Issue
Block a user