1
0
Fork 0

Abstract manifest branch creation from init to the manifest object

This permits the XML style manifest to use 'default', while other
types can use their own creation strategy for the current branch.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2009-07-03 16:24:57 -07:00
parent abb7a3dfec
commit 75b87c8a51
3 changed files with 12 additions and 4 deletions

View file

@ -169,6 +169,12 @@ class XmlManifest(Manifest):
self._Load()
return self._default
def InitBranch(self):
m = self.manifestProject
if m.CurrentBranch is None:
return m.StartBranch('default')
return True
def SetMRefs(self, project):
if self.branch:
project._InitAnyMRef(R_M + self.branch)