Show More
@@ -1013,6 +1013,7 b' class bundlepart(object):' | |||||
1013 | self._generated = None |
|
1013 | self._generated = None | |
1014 | self.mandatory = mandatory |
|
1014 | self.mandatory = mandatory | |
1015 |
|
1015 | |||
|
1016 | @encoding.strmethod | |||
1016 | def __repr__(self): |
|
1017 | def __repr__(self): | |
1017 | cls = b"%s.%s" % (self.__class__.__module__, self.__class__.__name__) |
|
1018 | cls = b"%s.%s" % (self.__class__.__module__, self.__class__.__name__) | |
1018 | return b'<%s object at %x; id: %s; type: %s; mandatory: %s>' % ( |
|
1019 | return b'<%s object at %x; id: %s; type: %s; mandatory: %s>' % ( |
@@ -255,7 +255,7 b' class linelog(object):' | |||||
255 | ) |
|
255 | ) | |
256 |
|
256 | |||
257 | def __repr__(self): |
|
257 | def __repr__(self): | |
258 |
return |
|
258 | return '<linelog at %s: maxrev=%d size=%d>' % ( | |
259 | hex(id(self)), |
|
259 | hex(id(self)), | |
260 | self._maxrev, |
|
260 | self._maxrev, | |
261 | len(self._program), |
|
261 | len(self._program), |
@@ -21,6 +21,7 b' from .node import (' | |||||
21 | ) |
|
21 | ) | |
22 | from .pycompat import getattr |
|
22 | from .pycompat import getattr | |
23 | from . import ( |
|
23 | from . import ( | |
|
24 | encoding, | |||
24 | error, |
|
25 | error, | |
25 | mdiff, |
|
26 | mdiff, | |
26 | pathutil, |
|
27 | pathutil, | |
@@ -867,9 +868,10 b' class treemanifest(object):' | |||||
867 | self._loadalllazy() |
|
868 | self._loadalllazy() | |
868 | return not self._dirs or all(m._isempty() for m in self._dirs.values()) |
|
869 | return not self._dirs or all(m._isempty() for m in self._dirs.values()) | |
869 |
|
870 | |||
|
871 | @encoding.strmethod | |||
870 | def __repr__(self): |
|
872 | def __repr__(self): | |
871 | return ( |
|
873 | return ( | |
872 |
b'<treemanifest dir=%s, node=%s, loaded=% |
|
874 | b'<treemanifest dir=%s, node=%s, loaded=%r, dirty=%r at 0x%x>' | |
873 | % ( |
|
875 | % ( | |
874 | self._dir, |
|
876 | self._dir, | |
875 | hex(self._node), |
|
877 | hex(self._node), |
@@ -1090,6 +1090,7 b' class recordhunk(object):' | |||||
1090 | def filename(self): |
|
1090 | def filename(self): | |
1091 | return self.header.filename() |
|
1091 | return self.header.filename() | |
1092 |
|
1092 | |||
|
1093 | @encoding.strmethod | |||
1093 | def __repr__(self): |
|
1094 | def __repr__(self): | |
1094 | return b'<hunk %r@%d>' % (self.filename(), self.fromline) |
|
1095 | return b'<hunk %r@%d>' % (self.filename(), self.fromline) | |
1095 |
|
1096 |
General Comments 0
You need to be logged in to leave comments.
Login now