gclient: error if status command is called in cog env

Bug: 339231299
Change-Id: Id27a8e8954ec7da813d6076559953d4f6d5d212c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5535828
Auto-Submit: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
changes/28/5535828/2
Yiwei Zhang 12 months ago committed by LUCI CQ
parent e1385296c4
commit c5e2ceabe3

@ -3642,6 +3642,11 @@ def CMDpack(parser, args):
@metrics.collector.collect_metrics('gclient status')
def CMDstatus(parser, args):
"""Shows modification status for every dependencies."""
if gclient_utils.IsEnvCog():
raise gclient_utils.Error(
'gclient status command is not supported. Please navigate to '
'source control view in the activiy bar to view modification '
'status instead.')
parser.add_option('--deps',
dest='deps_os',
metavar='OS_LIST',

Loading…
Cancel
Save