Mercurial > public > mercurial-scm > hg
comparison hgext/lfs/blobstore.py @ 37146:c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
The trailing space looks weird when conditionalizing the line. The commas
shouldn't be necessary because of the indenting. The `lfs-test-server` isn't
sending all of the same items (notably, the "transfer" attribute is missing), so
having the commas means more lines need to be conditionalized.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 14 Mar 2018 23:34:08 -0400 |
parents | 56c7cd067477 |
children | b00bd974eef5 |
comparison
equal
deleted
inserted
replaced
37145:56c7cd067477 | 37146:c37c47e47a95 |
---|---|
247 | 247 |
248 if 'objects' in response: | 248 if 'objects' in response: |
249 response['objects'] = sorted(response['objects'], | 249 response['objects'] = sorted(response['objects'], |
250 key=lambda p: p['oid']) | 250 key=lambda p: p['oid']) |
251 self.ui.debug('%s\n' | 251 self.ui.debug('%s\n' |
252 % json.dumps(response, indent=2, sort_keys=True)) | 252 % json.dumps(response, indent=2, |
253 separators=('', ': '), sort_keys=True)) | |
253 | 254 |
254 return response | 255 return response |
255 | 256 |
256 def _checkforservererror(self, pointers, responses, action): | 257 def _checkforservererror(self, pointers, responses, action): |
257 """Scans errors from objects | 258 """Scans errors from objects |