summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/diffmanifests.py8
-rw-r--r--subcmds/help.py4
-rw-r--r--subcmds/info.py2
-rw-r--r--subcmds/init.py4
-rw-r--r--subcmds/status.py2
5 files changed, 10 insertions, 10 deletions
diff --git a/subcmds/diffmanifests.py b/subcmds/diffmanifests.py
index 72c441ac..409bbdac 100644
--- a/subcmds/diffmanifests.py
+++ b/subcmds/diffmanifests.py
@@ -16,7 +16,7 @@
16 16
17from color import Coloring 17from color import Coloring
18from command import PagedCommand 18from command import PagedCommand
19from manifest_xml import XmlManifest 19from manifest_xml import RepoClient
20 20
21 21
22class _Coloring(Coloring): 22class _Coloring(Coloring):
@@ -183,7 +183,7 @@ synced and their revisions won't be found.
183 self.OptionParser.error('missing manifests to diff') 183 self.OptionParser.error('missing manifests to diff')
184 184
185 def Execute(self, opt, args): 185 def Execute(self, opt, args):
186 self.out = _Coloring(self.manifest.globalConfig) 186 self.out = _Coloring(self.client.globalConfig)
187 self.printText = self.out.nofmt_printer('text') 187 self.printText = self.out.nofmt_printer('text')
188 if opt.color: 188 if opt.color:
189 self.printProject = self.out.nofmt_printer('project', attr='bold') 189 self.printProject = self.out.nofmt_printer('project', attr='bold')
@@ -193,12 +193,12 @@ synced and their revisions won't be found.
193 else: 193 else:
194 self.printProject = self.printAdded = self.printRemoved = self.printRevision = self.printText 194 self.printProject = self.printAdded = self.printRemoved = self.printRevision = self.printText
195 195
196 manifest1 = XmlManifest(self.manifest.repodir) 196 manifest1 = RepoClient(self.manifest.repodir)
197 manifest1.Override(args[0], load_local_manifests=False) 197 manifest1.Override(args[0], load_local_manifests=False)
198 if len(args) == 1: 198 if len(args) == 1:
199 manifest2 = self.manifest 199 manifest2 = self.manifest
200 else: 200 else:
201 manifest2 = XmlManifest(self.manifest.repodir) 201 manifest2 = RepoClient(self.manifest.repodir)
202 manifest2.Override(args[1], load_local_manifests=False) 202 manifest2.Override(args[1], load_local_manifests=False)
203 203
204 diff = manifest1.projectsDiff(manifest2) 204 diff = manifest1.projectsDiff(manifest2)
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')
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')
diff --git a/subcmds/init.py b/subcmds/init.py
index 5ba0d074..f46babfe 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -365,7 +365,7 @@ to update the working directory files.
365 return a 365 return a
366 366
367 def _ShouldConfigureUser(self, opt): 367 def _ShouldConfigureUser(self, opt):
368 gc = self.manifest.globalConfig 368 gc = self.client.globalConfig
369 mp = self.manifest.manifestProject 369 mp = self.manifest.manifestProject
370 370
371 # If we don't have local settings, get from global. 371 # If we don't have local settings, get from global.
@@ -414,7 +414,7 @@ to update the working directory files.
414 return False 414 return False
415 415
416 def _ConfigureColor(self): 416 def _ConfigureColor(self):
417 gc = self.manifest.globalConfig 417 gc = self.client.globalConfig
418 if self._HasColorSet(gc): 418 if self._HasColorSet(gc):
419 return 419 return
420 420
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:
165 proj_dirs, proj_dirs_parents, outstring) 165 proj_dirs, proj_dirs_parents, outstring)
166 166
167 if outstring: 167 if outstring:
168 output = StatusColoring(self.manifest.globalConfig) 168 output = StatusColoring(self.client.globalConfig)
169 output.project('Objects not within a project (orphans)') 169 output.project('Objects not within a project (orphans)')
170 output.nl() 170 output.nl()
171 for entry in outstring: 171 for entry in outstring: