From 8c1e9cbef161f2ff12dadbacf26affd23876fde9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 6 Sep 2020 14:53:18 -0400 Subject: 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 Tested-by: Mike Frysinger --- subcmds/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/info.py') 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): help="Disable all remote operations") def Execute(self, opt, args): - self.out = _Coloring(self.manifest.globalConfig) + self.out = _Coloring(self.client.globalConfig) self.heading = self.out.printer('heading', attr='bold') self.headtext = self.out.nofmt_printer('headtext', fg='yellow') self.redtext = self.out.printer('redtext', fg='red') -- cgit v1.2.3-54-g00ecf