Mercurial > hg
comparison mercurial/debugcommands.py @ 36459:580f75f70f39
py3: use '%d' to convert integers to bytes
Differential Revision: https://phab.mercurial-scm.org/D2479
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 27 Feb 2018 14:46:35 +0530 |
parents | 0cb09c322647 |
children | 6e90c59b6da1 |
comparison
equal
deleted
inserted
replaced
36458:2218f5bfafca | 36459:580f75f70f39 |
---|---|
268 | 268 |
269 def showchunks(named): | 269 def showchunks(named): |
270 ui.write("\n%s%s\n" % (indent_string, named)) | 270 ui.write("\n%s%s\n" % (indent_string, named)) |
271 for deltadata in gen.deltaiter(): | 271 for deltadata in gen.deltaiter(): |
272 node, p1, p2, cs, deltabase, delta, flags = deltadata | 272 node, p1, p2, cs, deltabase, delta, flags = deltadata |
273 ui.write("%s%s %s %s %s %s %s\n" % | 273 ui.write("%s%s %s %s %s %s %d\n" % |
274 (indent_string, hex(node), hex(p1), hex(p2), | 274 (indent_string, hex(node), hex(p1), hex(p2), |
275 hex(cs), hex(deltabase), len(delta))) | 275 hex(cs), hex(deltabase), len(delta))) |
276 | 276 |
277 chunkdata = gen.changelogheader() | 277 chunkdata = gen.changelogheader() |
278 showchunks("changelog") | 278 showchunks("changelog") |