mercurial/cmdutil.py
changeset 33362 e48fb90f80c8
parent 33334 20f533a92eda
child 33438 8056481caa81
--- a/mercurial/cmdutil.py	Sun Jul 09 00:23:03 2017 -0400
+++ b/mercurial/cmdutil.py	Sun Jul 09 00:53:16 2017 -0400
@@ -3547,10 +3547,7 @@
     for f, msg in afterresolvedstates:
         if repo.vfs.exists(f):
             return contmsg % msg, True
-    workingctx = repo[None]
-    dirty = any(repo.status()) or any(workingctx.sub(s).dirty()
-                                         for s in workingctx.substate)
-    if dirty:
+    if repo[None].dirty(missing=True, merge=False, branch=False):
         return contmsg % _("hg commit"), False
     return None, None