You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dict(name=['-I', '--ignore'], action='store_true', help='Ignore errors related to unpublished libraries, unpublished or uncommitted changes, and attempt to update from associated remote repository URLs.'),
1944
1944
dict(name='--depth', nargs='?', help='Number of revisions to fetch from the remote repository. Default: all revisions.'),
1945
1945
dict(name='--protocol', nargs='?', help='Transport protocol for the source control management. Supported: https, http, ssh, git. Default: inferred from URL.'),
1946
+
dict(name=['-l', '--latest-deps'], action='store_true', help='Update all dependencies to the latest revision of their current branch. WARNING: Ignores lib files'),
1946
1947
help='Update to branch, tag, revision or latest',
1947
1948
description=(
1948
1949
"Updates the current program or library and its dependencies to specified\nbranch, tag or revision.\n"
1949
1950
"Alternatively fetches from associated remote repository URL and updates to the\n"
"This %s is in detached HEAD state, and you won't be able to receive updates from the remote repository until you either checkout a branch or create a new one.\n"
1965
1966
"You can checkout a branch using \"%s checkout <branch_name>\" command before running \"mbed update\"."% (cwd_type, repo.scm.name), 1)
1966
1967
1968
+
ifrepo.isdetached() andlatest_deps:
1969
+
warning(
1970
+
"The repo %s is in detached HEAD state, and you won't be able to receive updates from the remote repository until you either checkout a branch or create a new one.\n"
1971
+
"You can checkout a branch using \"%s checkout <branch_name>\" command before running \"mbed update\"."% (repo.name, repo.scm.name))
0 commit comments