changeset 235:a8aa0caf52db

Provide the rules revision number to reports
author Bernhard Herzog <bh@intevation.de>
date Tue, 13 Jan 2009 16:33:39 +0000
parents eaa696629a91
children 065d20fb4691
files treepkg/report.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/report.py	Tue Jan 13 16:18:58 2009 +0000
+++ b/treepkg/report.py	Tue Jan 13 16:33:39 2009 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2007, 2008 by Intevation GmbH
+# Copyright (C) 2007, 2008, 2009 by Intevation GmbH
 # Authors:
 # Bernhard Herzog <bh@intevation.de>
 #
@@ -75,11 +75,13 @@
         num_columns = len(self.tracks)
         for column, track in enumerate(self.tracks):
             for revision in track.get_revisions():
-                row = revisions.setdefault(revision.revision,
+                row = revisions.setdefault((revision.revision,
+                                            revision.rules_revision),
                                            [None] * num_columns)
                 log_files = [(title, os.path.basename(filename))
                               for title, filename in revision.list_log_files()]
                 row[column] = struct(revno=revision.revision,
+                                     debrev=revision.rules_revision,
                                      revision=revision,
                                      column=column,
                                      name=track.name,
@@ -100,6 +102,7 @@
                 revisions.append((revision.status.start,
                                   struct(revno=revision.revision,
                                          revision=revision,
+                                         debrev=revision.rules_revision,
                                          log_files =
                                            [(title, os.path.basename(filename))
                                             for title, filename
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)