diff options
author | Shawn O. Pearce <sop@google.com> | 2009-07-03 16:16:18 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-07-03 20:03:38 -0700 |
commit | abb7a3dfecdfe98b30594219f24c5c3d5e11e990 (patch) | |
tree | eeec9afdd3f3b42101d436d21e1e802b419c5e74 /command.py | |
parent | cc6c79643e1cafad565424caabe581e7b548bf6f (diff) | |
download | git-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.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. |