remotefilelog: fix format str, blobsize isn't always a #, can be "(missing)"
authorKyle Lippincott <spectral@google.com>
Mon, 25 Feb 2019 12:42:48 -0800
changeset 41807 941685500125
parent 41806 118c1ec4f31b
child 41808 8ad46ac6728e
remotefilelog: fix format str, blobsize isn't always a #, can be "(missing)" Differential Revision: https://phab.mercurial-scm.org/D6025
hgext/remotefilelog/debugcommands.py
--- a/hgext/remotefilelog/debugcommands.py	Fri Feb 22 19:24:01 2019 -0800
+++ b/hgext/remotefilelog/debugcommands.py	Mon Feb 25 12:42:48 2019 -0800
@@ -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()