# HG changeset patch # User Gregory Szorc # Date 2018-02-24 19:17:10 # Node ID 67ec4ad815e62b49cd85ac2b858bbef79c419e70 # Parent 72da480db4a5f541d40d8ce86af8b89d8ced88a3 patchbomb: resolve revs before evaluating %ld revset Weaning off of basectx.__rev__. Differential Revision: https://phab.mercurial-scm.org/D2432 diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -654,8 +654,9 @@ def email(ui, repo, *revs, **opts): else: msg = _('public url %s is missing %s') msg %= (publicurl, missing[0]) + missingrevs = [ctx.rev() for ctx in missing] revhint = ' '.join('-r %s' % h - for h in repo.set('heads(%ld)', missing)) + for h in repo.set('heads(%ld)', missingrevs)) hint = _("use 'hg push %s %s'") % (publicurl, revhint) raise error.Abort(msg, hint=hint)