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

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2020, 2:27 a.m.
Message ID <6ea8784b78e303349208e03a04873fe8@localhost.localdomain>
Download mbox | patch
Permalink /patch/45160/
State Not Applicable
Headers show

Comments

phabricator - Feb. 11, 2020, 2:27 a.m.
Closed by commit rHGe80da7a63264: tags: fix some type confusion exposed in python 3 (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8107?vs=20127&id=20140

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8107/new/

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
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(