#NEWLINE# def _ParseDefault( self , node ) : #NEWLINE# #INDENT# '\n    reads a <default> element from the manifest file\n    ' #NEWLINE# d = _Default ( ) #NEWLINE# d . remote = self . _get_remote ( node ) #NEWLINE# d . revisionExpr = node . getAttribute ( 'revision' ) #NEWLINE# if ( d . revisionExpr == '' ) : #NEWLINE# #INDENT# d . revisionExpr = None #NEWLINE# #UNINDENT# d . destBranchExpr = ( node . getAttribute ( 'dest-branch' ) or None ) #NEWLINE# sync_j = node . getAttribute ( 'sync-j' ) #NEWLINE# if ( ( sync_j == '' ) or ( sync_j is None ) ) : #NEWLINE# #INDENT# d . sync_j = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# d . sync_j = int ( sync_j ) #NEWLINE# #UNINDENT# sync_c = node . getAttribute ( 'sync-c' ) #NEWLINE# if ( not sync_c ) : #NEWLINE# #INDENT# d . sync_c = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# d . sync_c = ( sync_c . lower ( ) in ( 'yes' , 'true' , '1' ) ) #NEWLINE# #UNINDENT# sync_s = node . getAttribute ( 'sync-s' ) #NEWLINE# if ( not sync_s ) : #NEWLINE# #INDENT# d . sync_s = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# d . sync_s = ( sync_s . lower ( ) in ( 'yes' , 'true' , '1' ) ) #NEWLINE# #UNINDENT# return d