Mercurial > evolve
comparison hgext/evolve.py @ 956:b107f3549ec2
evolve: make exchange output compact in the old pushkey case too.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 02 Jun 2014 14:44:13 -0700 |
parents | 72670e282460 |
children | 2cde59f3cb5d |
comparison
equal
deleted
inserted
replaced
955:72670e282460 | 956:b107f3549ec2 |
---|---|
2284 % (len(markers), len(obsdata.getvalue()))) | 2284 % (len(markers), len(obsdata.getvalue()))) |
2285 remote.evoext_pushobsmarkers_0(obsdata) | 2285 remote.evoext_pushobsmarkers_0(obsdata) |
2286 repo.ui.progress('OBSEXC', None) | 2286 repo.ui.progress('OBSEXC', None) |
2287 else: | 2287 else: |
2288 rslts = [] | 2288 rslts = [] |
2289 repo.ui.status("OBSEXC: pushing %i markers\n" % len(markers)) | |
2290 remotedata = _pushkeyescape(markers).items() | 2289 remotedata = _pushkeyescape(markers).items() |
2291 totalbytes = sum(len(d) for k,d in remotedata) | 2290 totalbytes = sum(len(d) for k,d in remotedata) |
2292 sentbytes = 0 | 2291 sentbytes = 0 |
2293 repo.ui.status("OBSEXC: sending %i pushkey payload (%i bytes)\n" | 2292 repo.ui.status("OBSEXC: pushing %i markers in %i pushkey payload (%i bytes)\n" |
2294 % (len(remotedata), totalbytes)) | 2293 % (len(markers), len(remotedata), totalbytes)) |
2295 for key, data in remotedata: | 2294 for key, data in remotedata: |
2296 repo.ui.progress('OBSEXC', sentbytes, item=key, unit="bytes", | 2295 repo.ui.progress('OBSEXC', sentbytes, item=key, unit="bytes", |
2297 total=totalbytes) | 2296 total=totalbytes) |
2298 rslts.append(remote.pushkey('obsolete', key, '', data)) | 2297 rslts.append(remote.pushkey('obsolete', key, '', data)) |
2299 sentbytes += len(data) | 2298 sentbytes += len(data) |