# HG changeset patch # User Matt Mackall # Date 2015-06-25 22:51:02 # Node ID 25897d778738c57166c21d9058a6caa4382007ce # Parent 1f8287b4193560ea2954692a4caaf5c31656c659 commit: mark internal-only option diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1475,6 +1475,7 @@ class localrepository(object): cctx = context.workingcommitctx(self, status, text, user, date, extra) + # internal config: ui.allowemptycommit allowemptycommit = (wctx.branch() != wctx.p1().branch() or extra.get('close') or merge or cctx.files() or self.ui.configbool('ui', 'allowemptycommit'))