@click.command('switch-to-branch')
@click.argument('branch')
@click.argument('apps', nargs=(-1))
@click.option('--upgrade', is_flag=True)
def switch_to_branch(branch, apps, upgrade=False):
 from bench.app import switch_to_branch
 switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
 print ('Switched to ' + branch)
 print 'Please run `bench update --patch` to be safe from any differences in database schema'

@ click . command ( 'switch-to-branch' ) @ click . argument ( 'branch' ) @ click . argument ( 'apps' , nargs = ( - 1 ) ) @ click . option ( '--upgrade' , is_flag = True ) def switch_to_branch ( branch , apps , upgrade = False ) : from bench . app import switch_to_branch switch_to_branch ( branch = branch , apps = list ( apps ) , upgrade = upgrade ) print ( 'Switched to ' + branch ) print 'Please run `bench update --patch` to be safe from any differences in database schema'
switch all apps to specified branch .