diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-05-07 14:39:44 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-07-06 16:18:06 +0900 |
commit | 6944cdb8d1b4765b4e9e6b3f3a09b65495da7ff3 (patch) | |
tree | e911b1fb2196cf9c3bbe3ad9658d613db9dd6452 | |
parent | 59b417493e0b0a18ba11f9d214308e82872c38e6 (diff) | |
download | git-repo-6944cdb8d1b4765b4e9e6b3f3a09b65495da7ff3.tar.gz |
forall: use smart sync override manifest if it exists
If a workspace is synced with the -s or -t option, the included projects
may be different to those in the original manifest. However, when using
the forall command, the list of the projects from the original manifest
is used.
If the smart sync manifest file exists, use it to override the original
manifest.
Change-Id: Iaefcbe148d2158ac046f158d98bbd8b5a5378ce7
-rw-r--r-- | subcmds/forall.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 3ddc3c3d..b93cd6d0 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -205,6 +205,13 @@ without iterating through the remaining projects. | |||
205 | mirror = self.manifest.IsMirror | 205 | mirror = self.manifest.IsMirror |
206 | rc = 0 | 206 | rc = 0 |
207 | 207 | ||
208 | smart_sync_manifest_name = "smart_sync_override.xml" | ||
209 | smart_sync_manifest_path = os.path.join( | ||
210 | self.manifest.manifestProject.worktree, smart_sync_manifest_name) | ||
211 | |||
212 | if os.path.isfile(smart_sync_manifest_path): | ||
213 | self.manifest.Override(smart_sync_manifest_path) | ||
214 | |||
208 | if not opt.regex: | 215 | if not opt.regex: |
209 | projects = self.GetProjects(args) | 216 | projects = self.GetProjects(args) |
210 | else: | 217 | else: |