summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorSimon Ruggier <Simon80@gmail.com>2015-07-24 12:50:06 +0200
committerSimon Ruggier <Simon80@gmail.com>2015-07-31 17:36:28 -0400
commit7e59de2bcc8513ba28701062be2637d90cb6eeff (patch)
treed367400513183111e6c24e48723d45899a1b0ba0 /manifest_xml.py
parent163fdbf2fd6ac8bb1f1e41fb74e68261badce32d (diff)
downloadgit-repo-7e59de2bcc8513ba28701062be2637d90cb6eeff.tar.gz
Include dest-branch attribute in the 'manifest' subcommand's output
Change-Id: If4227d02005fddea82d9e698a373222100d8f710
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 130e17c2..7e719600 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -202,6 +202,9 @@ class XmlManifest(object):
202 if d.revisionExpr: 202 if d.revisionExpr:
203 have_default = True 203 have_default = True
204 e.setAttribute('revision', d.revisionExpr) 204 e.setAttribute('revision', d.revisionExpr)
205 if d.destBranchExpr:
206 have_default = True
207 e.setAttribute('dest-branch', d.destBranchExpr)
205 if d.sync_j > 1: 208 if d.sync_j > 1:
206 have_default = True 209 have_default = True
207 e.setAttribute('sync-j', '%d' % d.sync_j) 210 e.setAttribute('sync-j', '%d' % d.sync_j)
@@ -267,6 +270,9 @@ class XmlManifest(object):
267 if p.upstream and p.upstream != p.revisionExpr: 270 if p.upstream and p.upstream != p.revisionExpr:
268 e.setAttribute('upstream', p.upstream) 271 e.setAttribute('upstream', p.upstream)
269 272
273 if p.dest_branch and p.dest_branch != d.destBranchExpr:
274 e.setAttribute('dest-branch', p.dest_branch)
275
270 for c in p.copyfiles: 276 for c in p.copyfiles:
271 ce = doc.createElement('copyfile') 277 ce = doc.createElement('copyfile')
272 ce.setAttribute('src', c.src) 278 ce.setAttribute('src', c.src)