summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/manifest-format.md3
-rw-r--r--manifest_xml.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/manifest-format.md b/docs/manifest-format.md
index 7c0a7da9..6e671080 100644
--- a/docs/manifest-format.md
+++ b/docs/manifest-format.md
@@ -281,6 +281,9 @@ with the new settings needed.
281If not supplied the remote and project for this manifest will be used: `remote` 281If not supplied the remote and project for this manifest will be used: `remote`
282cannot be supplied. 282cannot be supplied.
283 283
284Projects from a submanifest and its submanifests are added to the
285submanifest::path:<path_prefix> group.
286
284Attribute `manifest-name`: The manifest filename in the manifest project. If 287Attribute `manifest-name`: The manifest filename in the manifest project. If
285not supplied, `default.xml` is used. 288not supplied, `default.xml` is used.
286 289
diff --git a/manifest_xml.py b/manifest_xml.py
index 7a4eb1e8..fa3e1034 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -36,6 +36,8 @@ LOCAL_MANIFESTS_DIR_NAME = 'local_manifests'
36SUBMANIFEST_DIR = 'submanifests' 36SUBMANIFEST_DIR = 'submanifests'
37# Limit submanifests to an arbitrary depth for loop detection. 37# Limit submanifests to an arbitrary depth for loop detection.
38MAX_SUBMANIFEST_DEPTH = 8 38MAX_SUBMANIFEST_DEPTH = 8
39# Add all projects from sub manifest into a group.
40SUBMANIFEST_GROUP_PREFIX = 'submanifest:'
39 41
40# Add all projects from local manifest into a group. 42# Add all projects from local manifest into a group.
41LOCAL_MANIFEST_GROUP_PREFIX = 'local:' 43LOCAL_MANIFEST_GROUP_PREFIX = 'local:'
@@ -990,6 +992,8 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md
990 self.branch = b 992 self.branch = b
991 993
992 parent_groups = self.parent_groups 994 parent_groups = self.parent_groups
995 if self.path_prefix:
996 parent_groups = f'{SUBMANIFEST_GROUP_PREFIX}:path:{self.path_prefix},{parent_groups}'
993 997
994 # The manifestFile was specified by the user which is why we allow include 998 # The manifestFile was specified by the user which is why we allow include
995 # paths to point anywhere. 999 # paths to point anywhere.