comparison mercurial/localrepo.py @ 25840:25897d778738

commit: mark internal-only option
author Matt Mackall <mpm@selenic.com>
date Thu, 25 Jun 2015 17:51:02 -0500
parents 1f8287b41935
children a2f7e0ba57a6
comparison
equal deleted inserted replaced
25839:1f8287b41935 25840:25897d778738
1473 fail(f, _("file not tracked!")) 1473 fail(f, _("file not tracked!"))
1474 1474
1475 cctx = context.workingcommitctx(self, status, 1475 cctx = context.workingcommitctx(self, status,
1476 text, user, date, extra) 1476 text, user, date, extra)
1477 1477
1478 # internal config: ui.allowemptycommit
1478 allowemptycommit = (wctx.branch() != wctx.p1().branch() 1479 allowemptycommit = (wctx.branch() != wctx.p1().branch()
1479 or extra.get('close') or merge or cctx.files() 1480 or extra.get('close') or merge or cctx.files()
1480 or self.ui.configbool('ui', 'allowemptycommit')) 1481 or self.ui.configbool('ui', 'allowemptycommit'))
1481 if not allowemptycommit: 1482 if not allowemptycommit:
1482 return None 1483 return None