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/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/status.py') diff --git a/subcmds/status.py b/subcmds/status.py index c380dba3..dfa974e9 100644 --- a/subcmds/status.py +++ b/subcmds/status.py @@ -165,7 +165,7 @@ the following meanings: proj_dirs, proj_dirs_parents, outstring) if outstring: - output = StatusColoring(self.manifest.globalConfig) + output = StatusColoring(self.client.globalConfig) output.project('Objects not within a project (orphans)') output.nl() for entry in outstring: -- cgit v1.2.3-54-g00ecf