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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Feb 26 09:40:45 EST 2019


pulkit added inline comments.

INLINE COMMENTS

> debugcommands.py:279
>                  blobsize = "(missing)"
> -            ui.write("%s  %s  %s%d\n" % (
> +            ui.write("%s  %s  %s%s\n" % (
>                  hashformatter(node),

It was changed to `%d` because `%s % int` does not work on Python 3. I think `%s % pycompat.bytestr(blobsize)` should work on both python versions.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list