diff hgext/phabricator.py @ 42950:6fb281f39c25

py3: pass a bytestring into querydrev instead of a string that'll TypeError This was a regression I introduced in c19d259fd6ad. When the string gets to the memoryview in _tokenize under py3 it'll die. Differential Revision: https://phab.mercurial-scm.org/D6869
author Ian Moody <moz-ian@perix.co.uk>
date Wed, 18 Sep 2019 00:20:43 +0100
parents e26c2440a030
children 04c6de38734d
line wrap: on
line diff
--- a/hgext/phabricator.py	Wed Sep 18 00:05:52 2019 +0100
+++ b/hgext/phabricator.py	Wed Sep 18 00:20:43 2019 +0100
@@ -612,7 +612,7 @@
         else:
             # Nothing changed. But still set "newrevphid" so the next revision
             # could depend on this one and "newrevid" for the summary line.
-            newrevphid = querydrev(repo, str(revid))[0][b'phid']
+            newrevphid = querydrev(repo, b'%d' % revid)[0][b'phid']
             newrevid = revid
             action = b'skipped'