From cc6c79643e1cafad565424caabe581e7b548bf6f Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 3 Jul 2009 15:29:02 -0700 Subject: Make refs/remotes/m management the manifest object's responsibility I plan to have the new submodule manifest format use a different layout for the m refs than the XML manifest format has used in the past. Thus we need to move the behavior management into the manifest object, and out of the project, so we can change it. Signed-off-by: Shawn O. Pearce --- manifest_xml.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index 97df75bd..66cdf3e3 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -29,6 +29,7 @@ from error import ManifestParseError MANIFEST_FILE_NAME = 'manifest.xml' LOCAL_MANIFEST_NAME = 'local_manifest.xml' +R_M = 'refs/remotes/m/' class _Default(object): """Project defaults within the manifest.""" @@ -168,6 +169,10 @@ class XmlManifest(Manifest): self._Load() return self._default + def SetMRefs(self, project): + if self.branch: + project._InitAnyMRef(R_M + self.branch) + def _Unload(self): self._loaded = False self._projects = {} -- cgit v1.2.3-54-g00ecf