summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manifest_xml.py6
-rw-r--r--project.py3
-rw-r--r--subcmds/sync.py4
3 files changed, 11 insertions, 2 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)
diff --git a/project.py b/project.py
index 868425ce..9cb7542e 100644
--- a/project.py
+++ b/project.py
@@ -2347,10 +2347,11 @@ class Project(object):
2347 if copy_all: 2347 if copy_all:
2348 to_copy = os.listdir(gitdir) 2348 to_copy = os.listdir(gitdir)
2349 2349
2350 dotgit = os.path.realpath(dotgit)
2350 for name in set(to_copy).union(to_symlink): 2351 for name in set(to_copy).union(to_symlink):
2351 try: 2352 try:
2352 src = os.path.realpath(os.path.join(gitdir, name)) 2353 src = os.path.realpath(os.path.join(gitdir, name))
2353 dst = os.path.realpath(os.path.join(dotgit, name)) 2354 dst = os.path.join(dotgit, name)
2354 2355
2355 if os.path.lexists(dst): 2356 if os.path.lexists(dst):
2356 continue 2357 continue
diff --git a/subcmds/sync.py b/subcmds/sync.py
index a8074a40..43d450be 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -314,7 +314,9 @@ later is required to fix a server side protocol bug.
314 pm.update() 314 pm.update()
315 except _FetchError: 315 except _FetchError:
316 err_event.set() 316 err_event.set()
317 except: 317 except Exception as e:
318 print('error: Cannot fetch %s (%s: %s)' \
319 % (project.name, type(e).__name__, str(e)), file=sys.stderr)
318 err_event.set() 320 err_event.set()
319 raise 321 raise
320 finally: 322 finally: