mercurial/commands.py
changeset 41281 183df3df6031
parent 41174 08dd462ea782
child 41365 876494fd967d
child 41455 8427fea04017
--- a/mercurial/commands.py	Fri Jan 04 16:04:48 2019 +0100
+++ b/mercurial/commands.py	Wed Nov 07 15:45:09 2018 -0800
@@ -4935,8 +4935,7 @@
 
             if mark:
                 if markcheck:
-                    with repo.wvfs(f) as fobj:
-                        fdata = fobj.read()
+                    fdata = repo.wvfs.tryread(f)
                     if filemerge.hasconflictmarkers(fdata) and \
                         ms[f] != mergemod.MERGE_RECORD_RESOLVED:
                         hasconflictmarkers.append(f)