#NEWLINE# def update_editable( self , obtain = True ) : #NEWLINE# #INDENT# if ( not url . url ) : #NEWLINE# #INDENT# logger . info ( ( 'Cannot update repository at %s; repository location is unknown' % self . source_dir ) ) #NEWLINE# return #NEWLINE# #UNINDENT# assert self . editable #NEWLINE# assert self . source_dir #NEWLINE# if self . url . startswith ( 'file:' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# assert ( '+' in self . url ) , ( 'bad url: %r' % self . url ) #NEWLINE# if ( not self . update ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( vc_type , url ) = self . url . split ( '+' , 1 ) #NEWLINE# backend = vcs . get_backend ( vc_type ) #NEWLINE# if backend : #NEWLINE# #INDENT# vcs_backend = backend ( self . url ) #NEWLINE# if obtain : #NEWLINE# #INDENT# vcs_backend . obtain ( self . source_dir ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# vcs_backend . export ( self . source_dir ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# assert 0 , ( 'Unexpected version control type (in %s): %s' % ( self . url , vc_type ) )