From a89d443c2eaa4d2f38ce52846dd96183ef5107d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Hajdan=2C=20Jr?= Date: Tue, 13 Jun 2017 21:13:25 +0200 Subject: [PATCH] gclient: remove hookinfo command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's unused, and not covered by tests. See https://codereview.chromium.org/9232068/ where it was added ~5 years ago for an abandoned project to convert to repo. Bug: 570091 Change-Id: Ica59cd3b28f92e05607203218cbeb92a377ec99a Reviewed-on: https://chromium-review.googlesource.com/534313 Reviewed-by: Dirk Pranke Commit-Queue: Paweł Hajdan Jr. --- gclient.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gclient.py b/gclient.py index ddf376c6d..f622c4bea 100755 --- a/gclient.py +++ b/gclient.py @@ -2311,18 +2311,6 @@ def CMDrevinfo(parser, args): return 0 -def CMDhookinfo(parser, args): - """Outputs the hooks that would be run by `gclient runhooks`.""" - (options, args) = parser.parse_args(args) - options.force = True - client = GClient.LoadCurrentConfig(options) - if not client: - raise gclient_utils.Error('client not configured; see \'gclient config\'') - client.RunOnDeps(None, []) - print('; '.join(' '.join(hook) for hook in client.GetHooks(options))) - return 0 - - def CMDverify(parser, args): """Verifies the DEPS file deps are only from allowed_hosts.""" (options, args) = parser.parse_args(args)