Submitter | Durham Goode |
---|---|
Date | May 12, 2015, 3:29 a.m. |
Message ID | <bb446b7270951339396e.1431401350@dev2000.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/9022/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1462,9 +1462,9 @@ class localrepository(object): cctx = context.workingcommitctx(self, status, text, user, date, extra) - if (not force and not extra.get("close") and not merge - and not cctx.files() - and wctx.branch() == wctx.p1().branch()): + allowemptycommit = (wctx.branch() != wctx.p1().branch() or force + or extra.get('close') or merge or cctx.files()) + if not allowemptycommit: return None if merge and cctx.deleted():