summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-07-03 16:16:18 -0700
committerShawn O. Pearce <sop@google.com>2009-07-03 20:03:38 -0700
commitabb7a3dfecdfe98b30594219f24c5c3d5e11e990 (patch)
treeeeec9afdd3f3b42101d436d21e1e802b419c5e74 /command.py
parentcc6c79643e1cafad565424caabe581e7b548bf6f (diff)
downloadgit-repo-abb7a3dfecdfe98b30594219f24c5c3d5e11e990.tar.gz
Allow callers to request a specific type of manifest
If the caller knows exactly what the manifest type must be we can now ask the loader to directly construct that type, rather than guessing it from the working directory. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'command.py')
-rw-r--r--command.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/command.py b/command.py
index 5ca43f20..9e970e80 100644
--- a/command.py
+++ b/command.py
@@ -62,8 +62,10 @@ class Command(object):
62 def manifest(self): 62 def manifest(self):
63 return self.GetManifest() 63 return self.GetManifest()
64 64
65 def GetManifest(self, reparse=False): 65 def GetManifest(self, reparse=False, type=None):
66 return manifest_loader.GetManifest(self.repodir, reparse) 66 return manifest_loader.GetManifest(self.repodir,
67 reparse=reparse,
68 type=type)
67 69
68 def GetProjects(self, args, missing_ok=False): 70 def GetProjects(self, args, missing_ok=False):
69 """A list of projects that match the arguments. 71 """A list of projects that match the arguments.