mercurial/merge.py
changeset 33311 f8f716da90fa
parent 33310 b4d517d736a1
child 33321 d09e948dc303
--- a/mercurial/merge.py	Tue Dec 01 09:26:10 2015 -0800
+++ b/mercurial/merge.py	Tue Dec 01 09:26:33 2015 -0800
@@ -567,8 +567,7 @@
 
     def unresolvedcount(self):
         """get unresolved count for this merge (persistent)"""
-        return len([True for f, entry in self._state.iteritems()
-                    if entry[0] == 'u'])
+        return len(list(self.unresolved()))
 
     def actions(self):
         """return lists of actions to perform on the dirstate"""