#NEWLINE# def get_diff( self , basepath = None ) : #NEWLINE# #INDENT# response = None #NEWLINE# if ( basepath is None ) : #NEWLINE# #INDENT# basepath = self . _path #NEWLINE# #UNINDENT# if self . path_exists ( ) : #NEWLINE# #INDENT# rel_path = sanitized ( normalized_rel_path ( self . _path , basepath ) ) #NEWLINE# command = ( 'bzr diff %s' % rel_path ) #NEWLINE# command += ( ' -p1 --prefix %s/:%s/' % ( rel_path , rel_path ) ) #NEWLINE# ( _ , response , _ ) = run_shell_command ( command , shell = True , cwd = basepath ) #NEWLINE# #UNINDENT# return self