Patchwork D6025: remotefilelog: fix format str, blobsize isn't always a #, can be "(missing)"

login
register
mail settings
Submitter phabricator
Date Feb. 26, 2019, 9:44 p.m.
Message ID <8314b6368f9fefbd15e370e2e72a9853@localhost.localdomain>
Download mbox | patch
Permalink /patch/38943/
State Not Applicable
Headers show

Comments

phabricator - Feb. 26, 2019, 9:44 p.m.
spectral updated this revision to Diff 14249.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6025?vs=14243&id=14249

REVISION DETAIL
  https://phab.mercurial-scm.org/D6025

AFFECTED FILES
  hgext/remotefilelog/debugcommands.py

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: pulkit, mercurial-devel

Patch

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()