Show More
@@ -119,6 +119,9 b' configitem = registrar.configitem(config' | |||||
119 | configitem('experimental', 'lfs.user-agent', |
|
119 | configitem('experimental', 'lfs.user-agent', | |
120 | default=None, |
|
120 | default=None, | |
121 | ) |
|
121 | ) | |
|
122 | configitem('experimental', 'lfs.worker-enable', | |||
|
123 | default=False, | |||
|
124 | ) | |||
122 |
|
125 | |||
123 | configitem('lfs', 'url', |
|
126 | configitem('lfs', 'url', | |
124 | default=None, |
|
127 | default=None, |
@@ -356,8 +356,13 b' class _gitlfsremote(object):' | |||||
356 | continue |
|
356 | continue | |
357 | raise |
|
357 | raise | |
358 |
|
358 | |||
359 | oids = worker.worker(self.ui, 0.1, transfer, (), |
|
359 | # Until https multiplexing gets sorted out | |
360 | sorted(objects, key=lambda o: o.get('oid'))) |
|
360 | if self.ui.configbool('experimental', 'lfs.worker-enable'): | |
|
361 | oids = worker.worker(self.ui, 0.1, transfer, (), | |||
|
362 | sorted(objects, key=lambda o: o.get('oid'))) | |||
|
363 | else: | |||
|
364 | oids = transfer(sorted(objects, key=lambda o: o.get('oid'))) | |||
|
365 | ||||
361 | processed = 0 |
|
366 | processed = 0 | |
362 | for _one, oid in oids: |
|
367 | for _one, oid in oids: | |
363 | processed += sizes[oid] |
|
368 | processed += sizes[oid] |
General Comments 0
You need to be logged in to leave comments.
Login now