--- a/mercurial/localrepo.py Wed Nov 02 18:56:07 2016 +0000
+++ b/mercurial/localrepo.py Wed Nov 02 18:45:53 2016 +0000
@@ -1633,13 +1633,7 @@
raise error.Abort(_("cannot commit merge with missing files"))
ms = mergemod.mergestate.read(self)
-
- if list(ms.unresolved()):
- raise error.Abort(_("unresolved merge conflicts "
- "(see 'hg help resolve')"))
- if ms.mdstate() != 's' or list(ms.driverresolved()):
- raise error.Abort(_('driver-resolved merge conflicts'),
- hint=_('run "hg resolve --all" to resolve'))
+ cmdutil.checkunresolved(ms)
if editor:
cctx._text = editor(self, cctx, subs)