From patchwork Tue Feb 26 22:12:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6025: remotefilelog: fix format str, blobsize isn't always a #, can be "(missing)" From: phabricator X-Patchwork-Id: 38944 Message-Id: <3d0f4d0c1263267c2f1c168fd34f7808@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Tue, 26 Feb 2019 22:12:24 +0000 This revision was automatically updated to reflect the committed changes. spectral marked an inline comment as done. Closed by commit rHG941685500125: remotefilelog: fix format str, blobsize isn't always a #, can be "(missing)" (authored by spectral, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6025?vs=14249&id=14250 REVISION DETAIL https://phab.mercurial-scm.org/D6025 AFFECTED FILES hgext/remotefilelog/debugcommands.py CHANGE DETAILS To: spectral, #hg-reviewers Cc: pulkit, mercurial-devel 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 @@ error, filelog, node as nodemod, + pycompat, revlog, ) from . import ( @@ -276,11 +277,11 @@ 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()