Mercurial > hg
comparison mercurial/mdiff.py @ 34506:1d804c22c671
py3: use '%d' for integers instead of '%s'
Differential Revision: https://phab.mercurial-scm.org/D973
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 02 Oct 2017 04:48:06 +0530 |
parents | da07367d683b |
children | 6ba79cf34f5e |
comparison
equal
deleted
inserted
replaced
34505:91250ff7d48a | 34506:1d804c22c671 |
---|---|
455 return '' | 455 return '' |
456 | 456 |
457 # TODO: deltas | 457 # TODO: deltas |
458 ret = [] | 458 ret = [] |
459 ret.append('GIT binary patch\n') | 459 ret.append('GIT binary patch\n') |
460 ret.append('literal %s\n' % len(tn)) | 460 ret.append('literal %d\n' % len(tn)) |
461 for l in chunk(zlib.compress(tn)): | 461 for l in chunk(zlib.compress(tn)): |
462 ret.append(fmtline(l)) | 462 ret.append(fmtline(l)) |
463 ret.append('\n') | 463 ret.append('\n') |
464 | 464 |
465 return ''.join(ret) | 465 return ''.join(ret) |