diff options
Diffstat (limited to 'subcmds/forall.py')
| -rw-r--r-- | subcmds/forall.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index ebc8beca..b93cd6d0 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
| @@ -151,11 +151,15 @@ without iterating through the remaining projects. | |||
| 151 | attributes that we need. | 151 | attributes that we need. |
| 152 | 152 | ||
| 153 | """ | 153 | """ |
| 154 | if not self.manifest.IsMirror: | ||
| 155 | lrev = project.GetRevisionId() | ||
| 156 | else: | ||
| 157 | lrev = None | ||
| 154 | return { | 158 | return { |
| 155 | 'name': project.name, | 159 | 'name': project.name, |
| 156 | 'relpath': project.relpath, | 160 | 'relpath': project.relpath, |
| 157 | 'remote_name': project.remote.name, | 161 | 'remote_name': project.remote.name, |
| 158 | 'lrev': project.GetRevisionId(), | 162 | 'lrev': lrev, |
| 159 | 'rrev': project.revisionExpr, | 163 | 'rrev': project.revisionExpr, |
| 160 | 'annotations': dict((a.name, a.value) for a in project.annotations), | 164 | 'annotations': dict((a.name, a.value) for a in project.annotations), |
| 161 | 'gitdir': project.gitdir, | 165 | 'gitdir': project.gitdir, |
| @@ -201,6 +205,13 @@ without iterating through the remaining projects. | |||
| 201 | mirror = self.manifest.IsMirror | 205 | mirror = self.manifest.IsMirror |
| 202 | rc = 0 | 206 | rc = 0 |
| 203 | 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 | |||
| 204 | if not opt.regex: | 215 | if not opt.regex: |
| 205 | projects = self.GetProjects(args) | 216 | projects = self.GetProjects(args) |
| 206 | else: | 217 | else: |
