# HG changeset patch # User Kyle Lippincott # Date 2019-02-25 20:42:48 # Node ID 941685500125d3f2a4c0d104a3d5b09c17827c08 # Parent 118c1ec4f31b013ac80e471c8252f67afeab1abb remotefilelog: fix format str, blobsize isn't always a #, can be "(missing)" Differential Revision: https://phab.mercurial-scm.org/D6025 diff --git a/hgext/remotefilelog/debugcommands.py b/hgext/remotefilelog/debugcommands.py --- a/hgext/remotefilelog/debugcommands.py +++ b/hgext/remotefilelog/debugcommands.py @@ -16,6 +16,7 @@ from mercurial import ( error, filelog, node as nodemod, + pycompat, revlog, ) from . import ( @@ -276,11 +277,11 @@ def debugdatapack(ui, *paths, **opts): totalblobsize += blobsize else: blobsize = "(missing)" - ui.write("%s %s %s%d\n" % ( + ui.write("%s %s %s%s\n" % ( hashformatter(node), hashformatter(deltabase), ('%d' % deltalen).ljust(14), - blobsize)) + pycompat.bytestr(blobsize))) if filename is not None: printtotals()