diff options
-rw-r--r-- | docs/manifest-format.md | 8 | ||||
-rw-r--r-- | manifest_xml.py | 16 | ||||
-rw-r--r-- | subcmds/manifest.py | 2 |
3 files changed, 8 insertions, 18 deletions
diff --git a/docs/manifest-format.md b/docs/manifest-format.md index b439dcb7..676e031d 100644 --- a/docs/manifest-format.md +++ b/docs/manifest-format.md | |||
@@ -396,10 +396,4 @@ these extra projects. | |||
396 | Manifest files stored in `$TOP_DIR/.repo/local_manifests/*.xml` will | 396 | Manifest files stored in `$TOP_DIR/.repo/local_manifests/*.xml` will |
397 | be loaded in alphabetical order. | 397 | be loaded in alphabetical order. |
398 | 398 | ||
399 | Additional remotes and projects may also be added through a local | 399 | The legacy `$TOP_DIR/.repo/local_manifest.xml` path is no longer supported. |
400 | manifest, stored in `$TOP_DIR/.repo/local_manifest.xml`. This method | ||
401 | is deprecated in favor of using multiple manifest files as mentioned | ||
402 | above. | ||
403 | |||
404 | If `$TOP_DIR/.repo/local_manifest.xml` exists, it will be loaded before | ||
405 | any manifest files stored in `$TOP_DIR/.repo/local_manifests/*.xml`. | ||
diff --git a/manifest_xml.py b/manifest_xml.py index f546045a..f2d04df2 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -192,7 +192,6 @@ class XmlManifest(object): | |||
192 | self.topdir = os.path.dirname(self.repodir) | 192 | self.topdir = os.path.dirname(self.repodir) |
193 | self.manifestFile = os.path.join(self.repodir, MANIFEST_FILE_NAME) | 193 | self.manifestFile = os.path.join(self.repodir, MANIFEST_FILE_NAME) |
194 | self.globalConfig = GitConfig.ForUser() | 194 | self.globalConfig = GitConfig.ForUser() |
195 | self.localManifestWarning = False | ||
196 | self.isGitcClient = False | 195 | self.isGitcClient = False |
197 | self._load_local_manifests = True | 196 | self._load_local_manifests = True |
198 | 197 | ||
@@ -555,15 +554,12 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md | |||
555 | self.manifestProject.worktree)) | 554 | self.manifestProject.worktree)) |
556 | 555 | ||
557 | if self._load_local_manifests: | 556 | if self._load_local_manifests: |
558 | local = os.path.join(self.repodir, LOCAL_MANIFEST_NAME) | 557 | if os.path.exists(os.path.join(self.repodir, LOCAL_MANIFEST_NAME)): |
559 | if os.path.exists(local): | 558 | print('error: %s is not supported; put local manifests in `%s`' |
560 | if not self.localManifestWarning: | 559 | 'instead' % (LOCAL_MANIFEST_NAME, |
561 | self.localManifestWarning = True | 560 | os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)), |
562 | print('warning: %s is deprecated; put local manifests ' | 561 | file=sys.stderr) |
563 | 'in `%s` instead' % (LOCAL_MANIFEST_NAME, | 562 | sys.exit(1) |
564 | os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)), | ||
565 | file=sys.stderr) | ||
566 | nodes.append(self._ParseManifestXml(local, self.repodir)) | ||
567 | 563 | ||
568 | local_dir = os.path.abspath(os.path.join(self.repodir, | 564 | local_dir = os.path.abspath(os.path.join(self.repodir, |
569 | LOCAL_MANIFESTS_DIR_NAME)) | 565 | LOCAL_MANIFESTS_DIR_NAME)) |
diff --git a/subcmds/manifest.py b/subcmds/manifest.py index fb020d8c..f0a0d069 100644 --- a/subcmds/manifest.py +++ b/subcmds/manifest.py | |||
@@ -30,7 +30,7 @@ class Manifest(PagedCommand): | |||
30 | _helpDescription = """ | 30 | _helpDescription = """ |
31 | 31 | ||
32 | With the -o option, exports the current manifest for inspection. | 32 | With the -o option, exports the current manifest for inspection. |
33 | The manifest and (if present) local_manifest.xml are combined | 33 | The manifest and (if present) local_manifests/ are combined |
34 | together to produce a single manifest file. This file can be stored | 34 | together to produce a single manifest file. This file can be stored |
35 | in a Git repository for use during future 'repo init' invocations. | 35 | in a Git repository for use during future 'repo init' invocations. |
36 | 36 | ||