#NEWLINE# def get_origin( repodir = '.' , repotype = 'auto' ) : #NEWLINE# #INDENT# 'Return the default checkout location.' #NEWLINE# if ( repotype is 'auto' ) : #NEWLINE# #INDENT# typ = detect_type ( repodir ) #NEWLINE# if ( typ is None ) : #NEWLINE# #INDENT# error . raise_error ( 'Unknown repository type at {0}.' , repodir ) #NEWLINE# #UNINDENT# #UNINDENT# if ( repotype not in registry ) : #NEWLINE# #INDENT# error . raise_error ( "Unknown repository type '{0}'." , repotype ) #NEWLINE# #UNINDENT# get_origin = registry [ repotype ] [ 2 ] #NEWLINE# if ( get_origin is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# return get_origin ( repodir )