From 8a2e331aa7186f41672effdcc45a8f8310e3715c Mon Sep 17 00:00:00 2001 From: Edward Lemur Date: Thu, 12 Jul 2018 21:15:09 +0000 Subject: [PATCH] Collect metrics for 'git nav-downstream' Check that everything works with git nav-downstream, which we're not afraid of breaking Bug: 832386 Change-Id: I7c7561c749bc72cc12804c4ebce8f827ed8be02b Reviewed-on: https://chromium-review.googlesource.com/1134518 Reviewed-by: Robbie Iannucci Commit-Queue: Edward Lesmes --- gclient.py | 3 +-- git_nav_downstream.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gclient.py b/gclient.py index 1a3054ee7c..2d3bdd1961 100755 --- a/gclient.py +++ b/gclient.py @@ -2845,8 +2845,7 @@ def CMDverify(parser, args): @subcommand.epilog("""For more information on what metrics are we collecting and -why, please read metrics.README.md or visit -.""") +why, please read metrics.README.md or visit https://bit.ly/2ufRS4p""") def CMDmetrics(parser, args): """Reports, and optionally modifies, the status of metric collection.""" parser.add_option('--opt-in', action='store_true', dest='enable_metrics', diff --git a/git_nav_downstream.py b/git_nav_downstream.py index 6ea085b431..1b9cce5e44 100755 --- a/git_nav_downstream.py +++ b/git_nav_downstream.py @@ -13,8 +13,10 @@ import argparse import sys from git_common import current_branch, branches, upstream, run, hash_one +import metrics +@metrics.collector.collect_metrics('git nav-downstream') def main(args): parser = argparse.ArgumentParser() parser.add_argument('--pick',