diff options
-rw-r--r-- | docs/manifest-format.txt | 12 | ||||
-rw-r--r-- | manifest_xml.py | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/manifest-format.txt b/docs/manifest-format.txt index f187bfaf..28a21bb7 100644 --- a/docs/manifest-format.txt +++ b/docs/manifest-format.txt | |||
@@ -137,14 +137,14 @@ Project elements not setting their own `dest-branch` will inherit | |||
137 | this value. If this value is not set, projects will use `revision` | 137 | this value. If this value is not set, projects will use `revision` |
138 | by default instead. | 138 | by default instead. |
139 | 139 | ||
140 | Attribute `sync_j`: Number of parallel jobs to use when synching. | 140 | Attribute `sync-j`: Number of parallel jobs to use when synching. |
141 | 141 | ||
142 | Attribute `sync_c`: Set to true to only sync the given Git | 142 | Attribute `sync-c`: Set to true to only sync the given Git |
143 | branch (specified in the `revision` attribute) rather than the | 143 | branch (specified in the `revision` attribute) rather than the |
144 | whole ref space. Project elements lacking a sync_c element of | 144 | whole ref space. Project elements lacking a sync-c element of |
145 | their own will use this value. | 145 | their own will use this value. |
146 | 146 | ||
147 | Attribute `sync_s`: Set to true to also sync sub-projects. | 147 | Attribute `sync-s`: Set to true to also sync sub-projects. |
148 | 148 | ||
149 | 149 | ||
150 | Element manifest-server | 150 | Element manifest-server |
@@ -232,11 +232,11 @@ group "notdefault", it will not be automatically downloaded by repo. | |||
232 | If the project has a parent element, the `name` and `path` here | 232 | If the project has a parent element, the `name` and `path` here |
233 | are the prefixed ones. | 233 | are the prefixed ones. |
234 | 234 | ||
235 | Attribute `sync_c`: Set to true to only sync the given Git | 235 | Attribute `sync-c`: Set to true to only sync the given Git |
236 | branch (specified in the `revision` attribute) rather than the | 236 | branch (specified in the `revision` attribute) rather than the |
237 | whole ref space. | 237 | whole ref space. |
238 | 238 | ||
239 | Attribute `sync_s`: Set to true to also sync sub-projects. | 239 | Attribute `sync-s`: Set to true to also sync sub-projects. |
240 | 240 | ||
241 | Attribute `upstream`: Name of the Git branch in which a sha1 | 241 | Attribute `upstream`: Name of the Git branch in which a sha1 |
242 | can be found. Used when syncing a revision locked manifest in | 242 | can be found. Used when syncing a revision locked manifest in |
diff --git a/manifest_xml.py b/manifest_xml.py index fdc31778..3517c151 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -261,6 +261,8 @@ class XmlManifest(object): | |||
261 | revision = self.remotes[remoteName].revision or d.revisionExpr | 261 | revision = self.remotes[remoteName].revision or d.revisionExpr |
262 | if not revision or revision != p.revisionExpr: | 262 | if not revision or revision != p.revisionExpr: |
263 | e.setAttribute('revision', p.revisionExpr) | 263 | e.setAttribute('revision', p.revisionExpr) |
264 | if p.upstream and p.upstream != p.revisionExpr: | ||
265 | e.setAttribute('upstream', p.upstream) | ||
264 | 266 | ||
265 | for c in p.copyfiles: | 267 | for c in p.copyfiles: |
266 | ce = doc.createElement('copyfile') | 268 | ce = doc.createElement('copyfile') |