##// END OF EJS Templates
commit: no longer allow empty commit with the 'force' argument (API)...
Pierre-Yves David -
r25021:9a74b991 default
parent child Browse files
Show More
@@ -1462,7 +1462,7 b' class localrepository(object):'
1462 cctx = context.workingcommitctx(self, status,
1462 cctx = context.workingcommitctx(self, status,
1463 text, user, date, extra)
1463 text, user, date, extra)
1464
1464
1465 allowemptycommit = (wctx.branch() != wctx.p1().branch() or force
1465 allowemptycommit = (wctx.branch() != wctx.p1().branch()
1466 or extra.get('close') or merge or cctx.files()
1466 or extra.get('close') or merge or cctx.files()
1467 or self.ui.configbool('ui', 'allowemptycommit'))
1467 or self.ui.configbool('ui', 'allowemptycommit'))
1468 if not allowemptycommit:
1468 if not allowemptycommit:
General Comments 0
You need to be logged in to leave comments. Login now