Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 35319: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 |
comparison
equal
deleted
inserted
replaced
35318:2bac2d836ce0 | 35319:228916ca12b5 |
---|---|
2100 return self._wrappedctx[path].size() | 2100 return self._wrappedctx[path].size() |
2101 | 2101 |
2102 def isdirty(self, path): | 2102 def isdirty(self, path): |
2103 return path in self._cache | 2103 return path in self._cache |
2104 | 2104 |
2105 def isempty(self): | |
2106 # We need to discard any keys that are actually clean before the empty | |
2107 # commit check. | |
2108 self._compact() | |
2109 return len(self._cache) == 0 | |
2110 | |
2105 def clean(self): | 2111 def clean(self): |
2106 self._cache = {} | 2112 self._cache = {} |
2107 | 2113 |
2108 def _markdirty(self, path, exists, data=None, date=None, flags=''): | 2114 def _markdirty(self, path, exists, data=None, date=None, flags=''): |
2109 self._cache[path] = { | 2115 self._cache[path] = { |