Mercurial > public > mercurial-scm > hg-stable
comparison hgext/phabricator.py @ 42954: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 |
comparison
equal
deleted
inserted
replaced
42953:3355e0c2845f | 42954:6fb281f39c25 |
---|---|
610 tags.tag(repo, tagname, ctx.node(), message=None, user=None, | 610 tags.tag(repo, tagname, ctx.node(), message=None, user=None, |
611 date=None, local=True) | 611 date=None, local=True) |
612 else: | 612 else: |
613 # Nothing changed. But still set "newrevphid" so the next revision | 613 # Nothing changed. But still set "newrevphid" so the next revision |
614 # could depend on this one and "newrevid" for the summary line. | 614 # could depend on this one and "newrevid" for the summary line. |
615 newrevphid = querydrev(repo, str(revid))[0][b'phid'] | 615 newrevphid = querydrev(repo, b'%d' % revid)[0][b'phid'] |
616 newrevid = revid | 616 newrevid = revid |
617 action = b'skipped' | 617 action = b'skipped' |
618 | 618 |
619 actiondesc = ui.label( | 619 actiondesc = ui.label( |
620 {b'created': _(b'created'), | 620 {b'created': _(b'created'), |