From abb7a3dfecdfe98b30594219f24c5c3d5e11e990 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 3 Jul 2009 16:16:18 -0700 Subject: 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 --- command.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'command.py') 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): def manifest(self): return self.GetManifest() - def GetManifest(self, reparse=False): - return manifest_loader.GetManifest(self.repodir, reparse) + def GetManifest(self, reparse=False, type=None): + return manifest_loader.GetManifest(self.repodir, + reparse=reparse, + type=type) def GetProjects(self, args, missing_ok=False): """A list of projects that match the arguments. -- cgit v1.2.3-54-g00ecf