diff options
| author | Josip Sokcevic <sokcevic@google.com> | 2024-11-22 00:02:40 +0000 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-11-22 18:39:41 +0000 |
| commit | fafd1ec23e8001dc7bdf87f2aa1f59051e33224d (patch) | |
| tree | 4fb04d40f9f0c389cf7574228f7390653698df78 /main.py | |
| parent | b1613d741e47d4f2a1d4c184daec73c110425385 (diff) | |
| download | git-repo-fafd1ec23e8001dc7bdf87f2aa1f59051e33224d.tar.gz | |
Fix event log command event hierarchy.
command should be cmd_name, to match what git is emitting. This also
fixes arguments, so that only relevant arguments are passed instead
of the entire sys.args, which will contain wrapper information
Change-Id: Id436accfff511292ec2c56798fffb2306dda38fc
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/443741
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Tested-by: Josip Sokcevic <sokcevic@google.com>
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -357,7 +357,7 @@ class _Repo: | |||
| 357 | start = time.time() | 357 | start = time.time() |
| 358 | cmd_event = cmd.event_log.Add(name, event_log.TASK_COMMAND, start) | 358 | cmd_event = cmd.event_log.Add(name, event_log.TASK_COMMAND, start) |
| 359 | cmd.event_log.SetParent(cmd_event) | 359 | cmd.event_log.SetParent(cmd_event) |
| 360 | git_trace2_event_log.StartEvent() | 360 | git_trace2_event_log.StartEvent(["repo", name] + argv) |
| 361 | git_trace2_event_log.CommandEvent(name="repo", subcommands=[name]) | 361 | git_trace2_event_log.CommandEvent(name="repo", subcommands=[name]) |
| 362 | 362 | ||
| 363 | def execute_command_helper(): | 363 | def execute_command_helper(): |
