diff options
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/forall.py | 7 | ||||
| -rw-r--r-- | subcmds/sync.py | 9 | ||||
| -rw-r--r-- | subcmds/upload.py | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 7d5f7794..e2a420a9 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
| @@ -260,7 +260,12 @@ without iterating through the remaining projects. | |||
| 260 | first = False | 260 | first = False |
| 261 | else: | 261 | else: |
| 262 | out.nl() | 262 | out.nl() |
| 263 | out.project('project %s/', project.relpath) | 263 | |
| 264 | if mirror: | ||
| 265 | project_header_path = project.name | ||
| 266 | else: | ||
| 267 | project_header_path = project.relpath | ||
| 268 | out.project('project %s/', project_header_path) | ||
| 264 | out.nl() | 269 | out.nl() |
| 265 | out.flush() | 270 | out.flush() |
| 266 | if errbuf: | 271 | if errbuf: |
diff --git a/subcmds/sync.py b/subcmds/sync.py index b34787d2..930211c1 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -34,7 +34,7 @@ else: | |||
| 34 | import urlparse | 34 | import urlparse |
| 35 | import xmlrpclib | 35 | import xmlrpclib |
| 36 | urllib = imp.new_module('urllib') | 36 | urllib = imp.new_module('urllib') |
| 37 | urllib.parse = urlparse | 37 | urllib.parse = urlparse.urlparse |
| 38 | xmlrpc = imp.new_module('xmlrpc') | 38 | xmlrpc = imp.new_module('xmlrpc') |
| 39 | xmlrpc.client = xmlrpclib | 39 | xmlrpc.client = xmlrpclib |
| 40 | 40 | ||
| @@ -526,6 +526,7 @@ later is required to fix a server side protocol bug. | |||
| 526 | (username, password), | 526 | (username, password), |
| 527 | 1) | 527 | 1) |
| 528 | 528 | ||
| 529 | manifest_name = opt.manifest_name | ||
| 529 | try: | 530 | try: |
| 530 | server = xmlrpc.client.Server(manifest_server) | 531 | server = xmlrpc.client.Server(manifest_server) |
| 531 | if opt.smart_sync: | 532 | if opt.smart_sync: |
| @@ -560,7 +561,7 @@ later is required to fix a server side protocol bug. | |||
| 560 | print('error: cannot write manifest to %s' % manifest_path, | 561 | print('error: cannot write manifest to %s' % manifest_path, |
| 561 | file=sys.stderr) | 562 | file=sys.stderr) |
| 562 | sys.exit(1) | 563 | sys.exit(1) |
| 563 | self.manifest.Override(manifest_name) | 564 | self._ReloadManifest(manifest_name) |
| 564 | else: | 565 | else: |
| 565 | print('error: %s' % manifest_str, file=sys.stderr) | 566 | print('error: %s' % manifest_str, file=sys.stderr) |
| 566 | sys.exit(1) | 567 | sys.exit(1) |
| @@ -593,7 +594,7 @@ later is required to fix a server side protocol bug. | |||
| 593 | mp.Sync_LocalHalf(syncbuf) | 594 | mp.Sync_LocalHalf(syncbuf) |
| 594 | if not syncbuf.Finish(): | 595 | if not syncbuf.Finish(): |
| 595 | sys.exit(1) | 596 | sys.exit(1) |
| 596 | self._ReloadManifest(opt.manifest_name) | 597 | self._ReloadManifest(manifest_name) |
| 597 | if opt.jobs is None: | 598 | if opt.jobs is None: |
| 598 | self.jobs = self.manifest.default.sync_j | 599 | self.jobs = self.manifest.default.sync_j |
| 599 | all_projects = self.GetProjects(args, | 600 | all_projects = self.GetProjects(args, |
| @@ -618,7 +619,7 @@ later is required to fix a server side protocol bug. | |||
| 618 | # Iteratively fetch missing and/or nested unregistered submodules | 619 | # Iteratively fetch missing and/or nested unregistered submodules |
| 619 | previously_missing_set = set() | 620 | previously_missing_set = set() |
| 620 | while True: | 621 | while True: |
| 621 | self._ReloadManifest(opt.manifest_name) | 622 | self._ReloadManifest(manifest_name) |
| 622 | all_projects = self.GetProjects(args, | 623 | all_projects = self.GetProjects(args, |
| 623 | missing_ok=True, | 624 | missing_ok=True, |
| 624 | submodules_ok=opt.fetch_submodules) | 625 | submodules_ok=opt.fetch_submodules) |
diff --git a/subcmds/upload.py b/subcmds/upload.py index 0c74738c..fc17670c 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -224,6 +224,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 224 | 224 | ||
| 225 | b = {} | 225 | b = {} |
| 226 | for branch in avail: | 226 | for branch in avail: |
| 227 | if branch is None: | ||
| 228 | continue | ||
| 227 | name = branch.name | 229 | name = branch.name |
| 228 | date = branch.date | 230 | date = branch.date |
| 229 | commit_list = branch.commits | 231 | commit_list = branch.commits |
