mercurial/manifest.py
changeset 26400 6f9d9e2a661f
parent 26199 5411059d93f8
child 26401 e93e12e2ff9a
equal deleted inserted replaced
26399:1f0e78f8f55f 26400:6f9d9e2a661f
   474     def _isempty(self):
   474     def _isempty(self):
   475         self._load() # for consistency; already loaded by all callers
   475         self._load() # for consistency; already loaded by all callers
   476         return (not self._files and (not self._dirs or
   476         return (not self._files and (not self._dirs or
   477                 all(m._isempty() for m in self._dirs.values())))
   477                 all(m._isempty() for m in self._dirs.values())))
   478 
   478 
   479     def __str__(self):
   479     def __repr__(self):
   480         return ('<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s>' %
   480         return ('<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' %
   481                 (self._dir, revlog.hex(self._node),
   481                 (self._dir, revlog.hex(self._node),
   482                  bool(self._load is _noop),
   482                  bool(self._load is _noop),
   483                  self._dirty))
   483                  self._dirty, id(self)))
   484 
   484 
   485     def dir(self):
   485     def dir(self):
   486         '''The directory that this tree manifest represents, including a
   486         '''The directory that this tree manifest represents, including a
   487         trailing '/'. Empty string for the repo root directory.'''
   487         trailing '/'. Empty string for the repo root directory.'''
   488         return self._dir
   488         return self._dir