summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/forall.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py
index ebc8beca..3ddc3c3d 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,