Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 35328:228916ca12b5
rebase: add concludememorynode(), and call it when rebasing in-memory
Differential Revision: https://phab.mercurial-scm.org/D1248
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Thu, 07 Dec 2017 22:35:43 -0800 |
parents | bea46aed1e1b |
children | 2e1c32a9c97b |
line wrap: on
line diff
--- a/mercurial/context.py Thu Dec 07 16:07:06 2017 -0800 +++ b/mercurial/context.py Thu Dec 07 22:35:43 2017 -0800 @@ -2102,6 +2102,12 @@ def isdirty(self, path): return path in self._cache + def isempty(self): + # We need to discard any keys that are actually clean before the empty + # commit check. + self._compact() + return len(self._cache) == 0 + def clean(self): self._cache = {}