From 7a91d51dcfc9516abc38aeaf5462ac55d454bb43 Mon Sep 17 00:00:00 2001 From: Mani Chandel Date: Thu, 24 Jul 2014 16:27:08 +0530 Subject: 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 --- manifest_xml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifest_xml.py') 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): revision = self.remotes[remoteName].revision or d.revisionExpr if not revision or revision != p.revisionExpr: e.setAttribute('revision', p.revisionExpr) + if p.upstream and p.upstream != p.revisionExpr: + e.setAttribute('upstream', p.upstream) for c in p.copyfiles: ce = doc.createElement('copyfile') -- cgit v1.2.3-54-g00ecf