# HG changeset patch # User Martin von Zweigbergk # Date 1522953216 25200 # Node ID 76823340a89971a28df91978c0caa1b1ba51b684 # Parent c3c76194f0c13639d395097a5080bf23c6b8757b mq: avoid a silly conversion from binary nodeid to hex We generally deal with binary nodeids in code. In this case the hex nodeid was passed to strip.checksubstate() where it was passed to repo.__getitem__, which of course accepts a binary nodeid. Differential Revision: https://phab.mercurial-scm.org/D3141 diff -r c3c76194f0c1 -r 76823340a899 hgext/mq.py --- a/hgext/mq.py Thu Apr 05 12:36:44 2018 -0700 +++ b/hgext/mq.py Thu Apr 05 11:33:36 2018 -0700 @@ -1664,7 +1664,7 @@ cparents = repo.changelog.parents(top) patchparent = self.qparents(repo, top) - inclsubs = checksubstate(repo, hex(patchparent)) + inclsubs = checksubstate(repo, patchparent) if inclsubs: substatestate = repo.dirstate['.hgsubstate']