mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
Better upgrade message on switch branch
This commit is contained in:
parent
c2acc81cd4
commit
1b52081da3
@ -144,7 +144,7 @@ def switch_branch(branch, apps=None, bench='.', upgrade=False):
|
|||||||
apps_dir = os.path.join(bench, 'apps')
|
apps_dir = os.path.join(bench, 'apps')
|
||||||
version_upgrade = is_version_upgrade(bench=bench, branch=branch)
|
version_upgrade = is_version_upgrade(bench=bench, branch=branch)
|
||||||
if version_upgrade and not upgrade:
|
if version_upgrade and not upgrade:
|
||||||
raise MajorVersionUpgradeException("Switching to {0} will cause upgrade from {1} to {2}".format(branch, version_upgrade[0], version_upgrade[1]), version_upgrade[0], version_upgrade[1])
|
raise MajorVersionUpgradeException("Switching to {0} will cause upgrade from {1} to {2}. Pass --upgrade to confirm".format(branch, version_upgrade[0], version_upgrade[1]), version_upgrade[0], version_upgrade[1])
|
||||||
|
|
||||||
if not apps:
|
if not apps:
|
||||||
apps = ('frappe', 'erpnext', 'shopping_cart')
|
apps = ('frappe', 'erpnext', 'shopping_cart')
|
||||||
|
Loading…
Reference in New Issue
Block a user