#NEWLINE# def obtain( self , dest ) : #NEWLINE# #INDENT# ( url , rev ) = self . get_url_rev ( ) #NEWLINE# if rev : #NEWLINE# #INDENT# rev_options = [ '-r' , rev ] #NEWLINE# rev_display = ( ' (to revision %s)' % rev ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# rev_options = [ ] #NEWLINE# rev_display = '' #NEWLINE# #UNINDENT# if self . check_destination ( dest , url , rev_options , rev_display ) : #NEWLINE# #INDENT# logger . info ( 'Checking out %s%s to %s' , url , rev_display , display_path ( dest ) ) #NEWLINE# self . run_command ( ( ( [ 'branch' , '-q' ] + rev_options ) + [ rev_display , dest ] ) )