style: use import repo_trace everywhere

Align with Google style guides and `import repo_trace` as a module
rather than import symbols out of it.

Change-Id: I6bea5e7a68775e93b6b7fcd218db666350aff690
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/647803
Tested-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Mike Frysinger authored and gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com committed 2026-10-23 09:01:00 -07:00
1 parent f95e7cd899
commit f7d252f5dc
8 files changed
+26 -28

No files matched your search

+3 -3
View File
@@ -17,7 +17,7 @@ import os
from git_command import git_require
from git_command import GitCommand
import platform_utils
from repo_trace import Trace
import repo_trace
HEAD = "HEAD"
@@ -82,7 +82,7 @@ class GitRefs:
self._LoadAll()
def _NeedUpdate(self):
with Trace(": scan refs %s", self._gitdir):
with repo_trace.Trace(": scan refs %s", self._gitdir):
for name, mtime in self._mtime.items():
try:
if mtime != os.path.getmtime(
@@ -94,7 +94,7 @@ class GitRefs:
return False
def _LoadAll(self):
with Trace(": load refs %s", self._gitdir):
with repo_trace.Trace(": load refs %s", self._gitdir):
self._phyref = {}
self._symref = {}
self._mtime = {}