def redo():
 with RopeContext() as ctx:
  changes = ctx.project.history.tobe_redone
  if (changes is None):
   env.error('Nothing to redo!')
   return False
  if env.user_confirm(('Redo [%s]?' % str(changes))):
   progress = ProgressHandler(('Redo %s' % str(changes)))
   for c in ctx.project.history.redo(task_handle=progress.handle):
    reload_changes(c)

def redo ( ) : with RopeContext ( ) as ctx : changes = ctx . project . history . tobe_redone if ( changes is None ) : env . error ( 'Nothing to redo!' ) return False if env . user_confirm ( ( 'Redo [%s]?' % str ( changes ) ) ) : progress = ProgressHandler ( ( 'Redo %s' % str ( changes ) ) ) for c in ctx . project . history . redo ( task_handle = progress . handle ) : reload_changes ( c )
redo last changes .