continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r490428 - /maven/continuum/sandbox/continuum-python/continuum.py
Date Wed, 27 Dec 2006 02:15:28 GMT
Author: brett
Date: Tue Dec 26 18:15:27 2006
New Revision: 490428

URL: http://svn.apache.org/viewvc?view=rev&rev=490428
Log:
[CONTINUUM-881]  Multiple changesets can produce failure
Submitted by: Andrew Williams

Modified:
    maven/continuum/sandbox/continuum-python/continuum.py

Modified: maven/continuum/sandbox/continuum-python/continuum.py
URL: http://svn.apache.org/viewvc/maven/continuum/sandbox/continuum-python/continuum.py?view=diff&rev=490428&r1=490427&r2=490428
==============================================================================
--- maven/continuum/sandbox/continuum-python/continuum.py (original)
+++ maven/continuum/sandbox/continuum-python/continuum.py Tue Dec 26 18:15:27 2006
@@ -410,8 +410,12 @@
 class ChangeSet:
     def __init__( self, map ):
         self.map = map
-        self.author = map[ "author" ]
-        self.comment = map[ "comment" ]
+        self.author = ""
+        if ( map.has_key( "author" ) ):
+          self.author = map[ "author" ]
+        self.comment = ""
+        if ( map.has_key( "comment" ) ):
+          self.comment = map[ "comment" ]
         self.date = localtime( int( map[ "date" ] ) / 1000 )
 
         self.files = list()
@@ -428,7 +432,9 @@
     def __init__( self, map ):
         self.map = map
         self.name = map[ "name" ]
-        self.revision = map[ "revision" ]
+        self.revision = ""
+        if ( map.has_key( "revision" ) ):
+          self.revision = map[ "revision" ]
 
     def __str__( self ):
         value = "File: " + self.name + " (" + self.revision + ")"



Mime
View raw message