#NEWLINE# def OnRemoteChosen( self , e = None ) : #NEWLINE# #INDENT# remoteIndex = self . remoteChooser . GetSelection ( ) #NEWLINE# self . selectedRemote = self . remoteChoices [ remoteIndex ] #NEWLINE# prefix = ( '%s/' % self . selectedRemote ) #NEWLINE# self . remoteBranches = [ b [ len ( prefix ) : ] for b in self . repo . remote_branches . keys ( ) if b . startswith ( e ) ] #NEWLINE# self . remoteBranches . sort ( ) #NEWLINE# self . branchChooser . Clear ( ) #NEWLINE# for branch in self . remoteBranches : #NEWLINE# #INDENT# self . branchChooser . Append ( branch ) #NEWLINE# #UNINDENT# self . branchChooser . Append ( 'New branch...' ) #NEWLINE# self . branchChooser . Select ( 0 ) #NEWLINE# self . OnBranchChosen ( )