#NEWLINE# def run( self ) : #NEWLINE# #INDENT# repo = self . get_repo ( ) #NEWLINE# if ( not repo ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# branches = self . get_branches ( repo ) #NEWLINE# choices = [ ] #NEWLINE# for ( current , name ) in branches : #NEWLINE# #INDENT# choices . append ( ( '%s %s' % ( ( '*' if current else ' ' ) , name ) ) ) #NEWLINE# #UNINDENT# self . window . show_quick_panel ( choices , partial ( self . on_done , repo , current ) , sublime . MONOSPACE_FONT )