summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 73be1b6e..80e563a5 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -21,7 +21,6 @@ import sys
21import xml.dom.minidom 21import xml.dom.minidom
22import urllib.parse 22import urllib.parse
23 23
24import gitc_utils
25from git_config import GitConfig 24from git_config import GitConfig
26from git_refs import R_HEADS, HEAD 25from git_refs import R_HEADS, HEAD
27from git_superproject import Superproject 26from git_superproject import Superproject
@@ -2248,21 +2247,6 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md
2248 return diff 2247 return diff
2249 2248
2250 2249
2251class GitcManifest(XmlManifest):
2252 """Parser for GitC (git-in-the-cloud) manifests."""
2253
2254 def _ParseProject(self, node, parent=None):
2255 """Override _ParseProject and add support for GITC specific attributes.""" # noqa: E501
2256 return super()._ParseProject(
2257 node, parent=parent, old_revision=node.getAttribute("old-revision")
2258 )
2259
2260 def _output_manifest_project_extras(self, p, e):
2261 """Output GITC Specific Project attributes"""
2262 if p.old_revision:
2263 e.setAttribute("old-revision", str(p.old_revision))
2264
2265
2266class RepoClient(XmlManifest): 2250class RepoClient(XmlManifest):
2267 """Manages a repo client checkout.""" 2251 """Manages a repo client checkout."""
2268 2252
@@ -2315,19 +2299,3 @@ class RepoClient(XmlManifest):
2315 2299
2316 # TODO: Completely separate manifest logic out of the client. 2300 # TODO: Completely separate manifest logic out of the client.
2317 self.manifest = self 2301 self.manifest = self
2318
2319
2320class GitcClient(RepoClient, GitcManifest):
2321 """Manages a GitC client checkout."""
2322
2323 def __init__(self, repodir, gitc_client_name):
2324 """Initialize the GitcManifest object."""
2325 self.gitc_client_name = gitc_client_name
2326 self.gitc_client_dir = os.path.join(
2327 gitc_utils.get_gitc_manifest_dir(), gitc_client_name
2328 )
2329
2330 super().__init__(
2331 repodir, os.path.join(self.gitc_client_dir, ".manifest")
2332 )
2333 self.isGitcClient = True