diff options
author | Aravind Vasudevan <aravindvasudev@google.com> | 2023-09-14 08:46:44 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-09-14 17:13:37 +0000 |
commit | c993c5068e0f7e22124b1bfb17ad0425fe2b8c83 (patch) | |
tree | 7e1dadd9b04a42ebfd438e41f35c176f0f0578da /subcmds/stage.py | |
parent | c3d7c8536c408a54c7af1486f0beec7a1b0eb0ad (diff) | |
download | git-repo-c993c5068e0f7e22124b1bfb17ad0425fe2b8c83.tar.gz |
subcmds: Use repo logger
Bug: b/292704435
Change-Id: Ia3a45d87fc0bf0d4a1ba53050d9c3cd2dba20e55
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/386236
Reviewed-by: Jason Chang <jasonnc@google.com>
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
Tested-by: Aravind Vasudevan <aravindvasudev@google.com>
Diffstat (limited to 'subcmds/stage.py')
-rw-r--r-- | subcmds/stage.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subcmds/stage.py b/subcmds/stage.py index 4d54eb19..92a00ea0 100644 --- a/subcmds/stage.py +++ b/subcmds/stage.py | |||
@@ -17,6 +17,10 @@ import sys | |||
17 | from color import Coloring | 17 | from color import Coloring |
18 | from command import InteractiveCommand | 18 | from command import InteractiveCommand |
19 | from git_command import GitCommand | 19 | from git_command import GitCommand |
20 | from repo_logging import RepoLogger | ||
21 | |||
22 | |||
23 | logger = RepoLogger(__file__) | ||
20 | 24 | ||
21 | 25 | ||
22 | class _ProjectList(Coloring): | 26 | class _ProjectList(Coloring): |
@@ -62,7 +66,7 @@ The '%prog' command stages files to prepare the next commit. | |||
62 | if p.IsDirty() | 66 | if p.IsDirty() |
63 | ] | 67 | ] |
64 | if not all_projects: | 68 | if not all_projects: |
65 | print("no projects have uncommitted modifications", file=sys.stderr) | 69 | logger.error("no projects have uncommitted modifications") |
66 | return | 70 | return |
67 | 71 | ||
68 | out = _ProjectList(self.manifest.manifestProject.config) | 72 | out = _ProjectList(self.manifest.manifestProject.config) |