Patchwork D8107: tags: fix some type confusion exposed in python 3

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2020, 2:10 a.m.
Message ID <differential-rev-PHID-DREV-nbmvf6utpma5ibomhhum-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45149/
State Superseded
Headers show

Comments

phabricator - Feb. 11, 2020, 2:10 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame just b-prefix and %-format cleanup, no meaningful change

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -3498,8 +3498,8 @@ 
     for r in repo:
         node = repo[r].node()
         tagsnode = cache.getfnode(node, computemissing=False)
-        tagsnodedisplay = hex(tagsnode) if tagsnode else 'missing/invalid'
-        ui.write(b'%s %s %s\n' % (r, hex(node), tagsnodedisplay))
+        tagsnodedisplay = hex(tagsnode) if tagsnode else b'missing/invalid'
+        ui.write(b'%d %s %s\n' % (r, hex(node), tagsnodedisplay))
 
 
 @command(