mirror of
https://github.com/frappe/bench.git
synced 2025-02-10 14:48:35 +00:00
chore: Remove deprecated command switch-to-master
This commit is contained in:
parent
da85e0ccdd
commit
f04a9e6e0d
@ -443,9 +443,6 @@ def switch_branch(branch, apps=None, bench_path='.', upgrade=False, check_upgrad
|
|||||||
def switch_to_branch(branch=None, apps=None, bench_path='.', upgrade=False):
|
def switch_to_branch(branch=None, apps=None, bench_path='.', upgrade=False):
|
||||||
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
|
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
|
||||||
|
|
||||||
def switch_to_master(apps=None, bench_path='.', upgrade=True):
|
|
||||||
switch_branch('master', apps=apps, bench_path=bench_path, upgrade=upgrade)
|
|
||||||
|
|
||||||
def switch_to_develop(apps=None, bench_path='.', upgrade=True):
|
def switch_to_develop(apps=None, bench_path='.', upgrade=True):
|
||||||
switch_branch('develop', apps=apps, bench_path=bench_path, upgrade=upgrade)
|
switch_branch('develop', apps=apps, bench_path=bench_path, upgrade=upgrade)
|
||||||
|
|
||||||
|
@ -27,11 +27,10 @@ bench_command.add_command(include_app_for_update)
|
|||||||
bench_command.add_command(pip)
|
bench_command.add_command(pip)
|
||||||
|
|
||||||
|
|
||||||
from bench.commands.update import update, retry_upgrade, switch_to_branch, switch_to_master, switch_to_develop
|
from bench.commands.update import update, retry_upgrade, switch_to_branch, switch_to_develop
|
||||||
bench_command.add_command(update)
|
bench_command.add_command(update)
|
||||||
bench_command.add_command(retry_upgrade)
|
bench_command.add_command(retry_upgrade)
|
||||||
bench_command.add_command(switch_to_branch)
|
bench_command.add_command(switch_to_branch)
|
||||||
bench_command.add_command(switch_to_master)
|
|
||||||
bench_command.add_command(switch_to_develop)
|
bench_command.add_command(switch_to_develop)
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,12 +41,6 @@ def switch_to_branch(branch, apps, upgrade=False):
|
|||||||
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
|
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
|
||||||
|
|
||||||
|
|
||||||
@click.command('switch-to-master', help="[DEPRECATED]: Switch frappe and erpnext to master branch")
|
|
||||||
def switch_to_master():
|
|
||||||
from bench.utils import log
|
|
||||||
log("`switch-to-master` has been deprecated as master branches were renamed to version-11")
|
|
||||||
|
|
||||||
|
|
||||||
@click.command('switch-to-develop')
|
@click.command('switch-to-develop')
|
||||||
def switch_to_develop(upgrade=False):
|
def switch_to_develop(upgrade=False):
|
||||||
"Switch frappe and erpnext to develop branch"
|
"Switch frappe and erpnext to develop branch"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user