aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/log.py')
-rw-r--r--RepSys/log.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index 24dca3c..b03e23d 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -90,6 +90,12 @@ class _Revision:
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
+ def __repr__(self):
+ lines = repr(self.lines)[:30] + "...]"
+ line = "<_Revision %d author=%r date=%r lines=%s>" % \
+ (self.revision, self.author, self.date, lines)
+ return line
+
class _Release(_Revision):
version = None
@@ -103,6 +109,11 @@ class _Release(_Revision):
self.revisions = []
_Revision.__init__(self, **kwargs)
+ def __repr__(self):
+ line = "<_Release v=%s r=%s revs=%r>" % \
+ (self.version, self.release, self.revisions)
+ return line
+
unescaped_macro_pat = re.compile(r"([^%])%([^%])")
def escape_macros(text):