changeset 34001:3340efe80803

morestatus: simplify check for unresolved merge conflicts Differential Revision: https://phab.mercurial-scm.org/D546
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 28 Aug 2017 14:47:18 -0700
parents 5cef00cdba7f
children 2ad028635ccd
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Aug 28 15:06:34 2017 -0700
+++ b/mercurial/cmdutil.py	Mon Aug 28 14:47:18 2017 -0700
@@ -587,7 +587,7 @@
         return
 
     m = scmutil.match(repo[None])
-    unresolvedlist = [f for f in mergestate if m(f) and mergestate[f] == 'u']
+    unresolvedlist = [f for f in mergestate.unresolved() if m(f)]
     if unresolvedlist:
         mergeliststr = '\n'.join(
             ['    %s' % os.path.relpath(