commit: mark internal-only option

This commit is contained in:
Matt Mackall 2015-06-25 17:51:02 -05:00
parent 6a4e277735
commit d8dd457296

View File

@ -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'))