def checkout_branch():
 branch = choose_potential_branch(N_(u'Checkout Branch'), N_(u'Checkout'))
 if (not branch):
  return
 cmds.do(cmds.CheckoutBranch, branch)

def checkout_branch ( ) : branch = choose_potential_branch ( N_ ( u'Checkout Branch' ) , N_ ( u'Checkout' ) ) if ( not branch ) : return cmds . do ( cmds . CheckoutBranch , branch )
launch the checkout branch dialog .