mercurial/localrepo.py
changeset 25018 93e015a3d1ea
parent 25017 4e857213d2d1
child 25021 9a74b9919581
--- a/mercurial/localrepo.py	Mon May 11 16:16:22 2015 -0700
+++ b/mercurial/localrepo.py	Mon May 11 16:18:28 2015 -0700
@@ -1463,7 +1463,8 @@
                                             text, user, date, extra)
 
             allowemptycommit = (wctx.branch() != wctx.p1().branch() or force
-                                or extra.get('close') or merge or cctx.files())
+                                or extra.get('close') or merge or cctx.files()
+                                or self.ui.configbool('ui', 'allowemptycommit'))
             if not allowemptycommit:
                 return None