You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by br...@apache.org on 2006/12/27 03:15:28 UTC
svn commit: r490428 - /maven/continuum/sandbox/continuum-python/continuum.py
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 + ")"