summaryrefslogtreecommitdiffstats
path: root/subcmds/info.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-09-06 14:53:18 -0400
committerMike Frysinger <vapier@google.com>2020-11-18 19:10:57 +0000
commit8c1e9cbef161f2ff12dadbacf26affd23876fde9 (patch)
treefcfdc404568a2d8dbc9edd9ec99ecdd758f8c424 /subcmds/info.py
parenta488af5ea5c53dd7cf2c90a751e77cc4ba87b7c3 (diff)
downloadgit-repo-8c1e9cbef161f2ff12dadbacf26affd23876fde9.tar.gz
manifest_xml: refactor manifest parsing from client management
We conflate the manifest & parsing logic with the management of the repo client checkout in a single class. This makes testing just one part (the manifest parsing) hard as it requires a full checkout too. Start splitting the two apart into separate classes to make it easy to reason about & test. Change-Id: Iaf897c93db9c724baba6044bfe7a589c024523b2 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/288682 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/info.py')
-rw-r--r--subcmds/info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/info.py b/subcmds/info.py
index f4d6f98c..60149975 100644
--- a/subcmds/info.py
+++ b/subcmds/info.py
@@ -44,7 +44,7 @@ class Info(PagedCommand):
44 help="Disable all remote operations") 44 help="Disable all remote operations")
45 45
46 def Execute(self, opt, args): 46 def Execute(self, opt, args):
47 self.out = _Coloring(self.manifest.globalConfig) 47 self.out = _Coloring(self.client.globalConfig)
48 self.heading = self.out.printer('heading', attr='bold') 48 self.heading = self.out.printer('heading', attr='bold')
49 self.headtext = self.out.nofmt_printer('headtext', fg='yellow') 49 self.headtext = self.out.nofmt_printer('headtext', fg='yellow')
50 self.redtext = self.out.printer('redtext', fg='red') 50 self.redtext = self.out.printer('redtext', fg='red')