Commit 87e7389a authored by Anthony Polito's avatar Anthony Polito Committed by LUCI CQ

add metric for reparent_branch

Bug: 1225658
Change-Id: Iea8e5d5f1732412afcdf7778a1d38200b59f0560
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3016611
Auto-Submit: Anthony Polito <apolito@google.com>
Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
parent 09c4f689
......@@ -17,7 +17,9 @@ from git_common import get_or_create_merge_base, root, manual_merge_base
from git_common import get_branch_tree, topo_iter
import git_rebase_update
import metrics
@metrics.collector.collect_metrics('git reparent-branch')
def main(args):
root_ref = root()
......@@ -95,7 +97,8 @@ def main(args):
if __name__ == '__main__': # pragma: no cover
try:
sys.exit(main(sys.argv[1:]))
with metrics.collector.print_notice_and_exit():
sys.exit(main(sys.argv[1:]))
except KeyboardInterrupt:
sys.stderr.write('interrupted\n')
sys.exit(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment