#NEWLINE# def on_done( self , repo , branches , idx ) : #NEWLINE# #INDENT# if ( idx == ( - 1 ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( current , branch ) = branches [ idx ] #NEWLINE# if current : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( exit , stdout , stderr ) = self . git ( [ 'checkout' , branch ] , cwd = repo ) #NEWLINE# if ( exit == 0 ) : #NEWLINE# #INDENT# panel = self . window . get_output_panel ( 'git-checkout' ) #NEWLINE# panel . run_command ( 'git_panel_write' , { #NEWLINE# #INDENT# 'content' : stderr , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . window . run_command ( 'show_panel' , { #NEWLINE# #INDENT# 'panel' : 'output.git-checkout' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sublime . error_message ( self . format_error_message ( stderr ) ) #NEWLINE# #UNINDENT# self . window . run_command ( 'git_status' , { #NEWLINE# #INDENT# 'refresh_only' : True , #NEWLINE# #UNINDENT# } )