#NEWLINE# @ staticmethod #NEWLINE# def discard( * changeentries ) : #NEWLINE# #INDENT# config = configuration . get ( ) #NEWLINE# idstodiscard = Changes . _collectids ( changeentries ) #NEWLINE# exitcode = shell . execute ( ( ( ( ( ( ( config . scmcommand + ' discard -w ' ) + config . workspace ) + ' -r ' ) + config . repo ) + ' -o' ) + idstodiscard ) ) #NEWLINE# if ( exitcode is 0 ) : #NEWLINE# #INDENT# for changeEntry in changeentries : #NEWLINE# #INDENT# changeEntry . setUnaccepted ( )