From 5e6b39291412822ad5f14c1dccf9a4c6d062ad1f Mon Sep 17 00:00:00 2001 From: Alex Turner Date: Wed, 16 Jul 2025 13:51:49 -0700 Subject: [PATCH] Pretty print dwa.xml when git cl format is used Currently the DWA directory is not covered by the XML parser, even though it defines a pretty_print.py file. Adding the DWA directory to the relevant list ensures any changes to dwa.xml are formatted appropriately. Bug: 403946430 Change-Id: I0954e10285353908914674a9865f556922d27b54 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6757032 Commit-Queue: Alex Turner Reviewed-by: Scott Lee --- metrics_xml_format.py | 1 + 1 file changed, 1 insertion(+) diff --git a/metrics_xml_format.py b/metrics_xml_format.py index 51898db3f6..19fdf0acf8 100755 --- a/metrics_xml_format.py +++ b/metrics_xml_format.py @@ -15,6 +15,7 @@ def GetMetricsDir(top_dir, path): top_dir = os.path.realpath(top_dir) metrics_xml_dirs = [ os.path.join(top_dir, 'tools', 'metrics', 'actions'), + os.path.join(top_dir, 'tools', 'metrics', 'dwa'), os.path.join(top_dir, 'tools', 'metrics', 'histograms'), os.path.join(top_dir, 'tools', 'metrics', 'structured'), os.path.join(top_dir, 'tools', 'metrics', 'ukm'),