diff options
author | Mani Chandel <mani.chandel@tcs.com> | 2014-07-24 16:27:08 +0530 |
---|---|---|
committer | Mani Chandel <mani.chandel@tcs.com> | 2014-07-24 16:27:08 +0530 |
commit | 7a91d51dcfc9516abc38aeaf5462ac55d454bb43 (patch) | |
tree | 484ea52178b2a6185916dafe9a7ddce304bb8783 /manifest_xml.py | |
parent | a8d539189e1c788663f022cbebd3b5ff28aaeb4b (diff) | |
download | git-repo-7a91d51dcfc9516abc38aeaf5462ac55d454bb43.tar.gz |
Enable transferring of attribute using command 'repo manifest -o -'
'upstream' attribute is now transferred to the new manifest xml
that is created when using command 'repo manifest -o -'.
Manifest help is updated for the attributes 'sync-c','sync-s' and
'sync-j'.
Bug: Issue 164
Change-Id: If63f781e91d25c5b5b5ea0696b0c04337b0a686a
Diffstat (limited to 'manifest_xml.py')
-rw-r--r-- | manifest_xml.py | 2 |
1 files changed, 2 insertions, 0 deletions
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') |