#NEWLINE# def get_repository_info( self ) : #NEWLINE# #INDENT# if ( not check_install ( [ 'cm' , 'version' ] ) ) : #NEWLINE# #INDENT# logging . debug ( 'Unable to execute "cm version": skipping Plastic' ) #NEWLINE# return None #NEWLINE# #UNINDENT# self . workspacedir = execute ( [ 'cm' , 'gwp' , '.' , '--format={1}' ] , split_lines = False , ignore_errors = True ) . strip ( ) #NEWLINE# logging . debug ( ( 'Workspace is %s' % self . workspacedir ) ) #NEWLINE# split = execute ( [ 'cm' , 'ls' , m . workspacedir , '--format={8}' ] , split_lines = True , ignore_errors = True ) #NEWLINE# split = [ x for x in split if x ] #NEWLINE# m = re . search ( '^rep:(.+)$' , split [ 0 ] , re . M ) #NEWLINE# if ( not m ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# path = m . group ( 1 ) #NEWLINE# return RepositoryInfo ( path , supports_changesets = True , supports_parent_diffs = False )