summaryrefslogtreecommitdiffstats
path: root/subcmds/help.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/help.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/help.py')
-rw-r--r--subcmds/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/help.py b/subcmds/help.py
index 1e16019a..c219a763 100644
--- a/subcmds/help.py
+++ b/subcmds/help.py
@@ -65,7 +65,7 @@ Displays detailed usage information about a command.
65 def gitc_supported(cmd): 65 def gitc_supported(cmd):
66 if not isinstance(cmd, GitcAvailableCommand) and not isinstance(cmd, GitcClientCommand): 66 if not isinstance(cmd, GitcAvailableCommand) and not isinstance(cmd, GitcClientCommand):
67 return True 67 return True
68 if self.manifest.isGitcClient: 68 if self.client.isGitcClient:
69 return True 69 return True
70 if isinstance(cmd, GitcClientCommand): 70 if isinstance(cmd, GitcClientCommand):
71 return False 71 return False
@@ -127,7 +127,7 @@ Displays detailed usage information about a command.
127 self.wrap.end_paragraph(1) 127 self.wrap.end_paragraph(1)
128 self.wrap.end_paragraph(0) 128 self.wrap.end_paragraph(0)
129 129
130 out = _Out(self.manifest.globalConfig) 130 out = _Out(self.client.globalConfig)
131 out._PrintSection('Summary', 'helpSummary') 131 out._PrintSection('Summary', 'helpSummary')
132 cmd.OptionParser.print_help() 132 cmd.OptionParser.print_help()
133 out._PrintSection('Description', 'helpDescription') 133 out._PrintSection('Description', 'helpDescription')