[Treepkg-commits] r185 - in trunk: test treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 24 19:55:29 CEST 2009


Author: bh
Date: 2009-04-24 19:55:29 +0200 (Fri, 24 Apr 2009)
New Revision: 185

Modified:
   trunk/test/test_status.py
   trunk/treepkg/status.py
Log:
Add a tags field to the revision status to keep track of which tags
apply to that build


Modified: trunk/test/test_status.py
===================================================================
--- trunk/test/test_status.py	2009-04-17 18:48:58 UTC (rev 184)
+++ trunk/test/test_status.py	2009-04-24 17:55:29 UTC (rev 185)
@@ -55,6 +55,7 @@
         self.assertEquals(status.status.name, "unknown")
         self.assertEquals(status.start, None)
         self.assertEquals(status.stop, None)
+        self.assertEquals(status.tags, "")
 
     def test_date(self):
         timestamp = datetime(2007, 3, 9, 17, 32, 55)

Modified: trunk/treepkg/status.py
===================================================================
--- trunk/treepkg/status.py	2009-04-17 18:48:58 UTC (rev 184)
+++ trunk/treepkg/status.py	2009-04-24 17:55:29 UTC (rev 185)
@@ -199,6 +199,8 @@
     start = DateFieldDesc(default=None)
     stop = DateFieldDesc(default=None)
 
+    tags = StringFieldDesc(default="")
+
     notification_mail = EnumFieldDesc()
     notification_mail.add("notification_sent",
                           "notification mail has been sent", default=True)



More information about the Treepkg-commits mailing list