def clone_repo(parent, runtask, progress, finish, spawn):
 result = prompt_for_clone()
 if (result is None):
  return
 (url, destdir) = result
 progress.set_details(N_(u'Clone Repository'), (N_(u'Cloning repository at %s') % url))
 task = CloneTask(url, destdir, spawn, parent)
 runtask.start(task, finish=finish, progress=progress)

def clone_repo ( parent , runtask , progress , finish , spawn ) : result = prompt_for_clone ( ) if ( result is None ) : return ( url , destdir ) = result progress . set_details ( N_ ( u'Clone Repository' ) , ( N_ ( u'Cloning repository at %s' ) % url ) ) task = CloneTask ( url , destdir , spawn , parent ) runtask . start ( task , finish = finish , progress = progress )
clone a repository asynchronously with progress animation .