Mercurial > public > mercurial-scm > hg
comparison mercurial/manifest.py @ 43346:6ada8a274b9c stable
formatting: run black version 19.10b0 on the codebase
The latest version of black is out and contains the change we needed. So we can
start using it now.
note: `test-check-format.t` will complains about this changes because it still
use `grey` and need to be migrated to `black`. See next changesets for this.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 29 Oct 2019 10:41:30 +0100 |
parents | 8ff1ecfadcd1 |
children | 9f70512ae2cf |
comparison
equal
deleted
inserted
replaced
43345:dc3fe251de72 | 43346:6ada8a274b9c |
---|---|
865 return False | 865 return False |
866 self._loadalllazy() | 866 self._loadalllazy() |
867 return not self._dirs or all(m._isempty() for m in self._dirs.values()) | 867 return not self._dirs or all(m._isempty() for m in self._dirs.values()) |
868 | 868 |
869 def __repr__(self): | 869 def __repr__(self): |
870 return b'<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' % ( | 870 return ( |
871 self._dir, | 871 b'<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' |
872 hex(self._node), | 872 % ( |
873 bool(self._loadfunc is _noop), | 873 self._dir, |
874 self._dirty, | 874 hex(self._node), |
875 id(self), | 875 bool(self._loadfunc is _noop), |
876 self._dirty, | |
877 id(self), | |
878 ) | |
876 ) | 879 ) |
877 | 880 |
878 def dir(self): | 881 def dir(self): |
879 '''The directory that this tree manifest represents, including a | 882 '''The directory that this tree manifest represents, including a |
880 trailing '/'. Empty string for the repo root directory.''' | 883 trailing '/'. Empty string for the repo root directory.''' |