Show More
@@ -726,9 +726,13 b' class treemanifest(object):' | |||||
726 |
|
726 | |||
727 | def _isempty(self): |
|
727 | def _isempty(self): | |
728 | self._load() # for consistency; already loaded by all callers |
|
728 | self._load() # for consistency; already loaded by all callers | |
|
729 | # See if we can skip loading everything. | |||
|
730 | if self._files or (self._dirs and | |||
|
731 | any(not m._isempty() for m in self._dirs.values())): | |||
|
732 | return False | |||
729 | self._loadalllazy() |
|
733 | self._loadalllazy() | |
730 |
return |
|
734 | return (not self._dirs or | |
731 |
all(m._isempty() for m in self._dirs.values())) |
|
735 | all(m._isempty() for m in self._dirs.values())) | |
732 |
|
736 | |||
733 | def __repr__(self): |
|
737 | def __repr__(self): | |
734 | return ('<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' % |
|
738 | return ('<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' % |
General Comments 0
You need to be logged in to leave comments.
Login now