Mercurial > hg-stable
changeset 36440:67ec4ad815e6
patchbomb: resolve revs before evaluating %ld revset
Weaning off of basectx.__rev__.
Differential Revision: https://phab.mercurial-scm.org/D2432
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 11:17:10 -0800 |
parents | 72da480db4a5 |
children | 38f480502043 |
files | hgext/patchbomb.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sat Feb 24 11:04:21 2018 -0800 +++ b/hgext/patchbomb.py Sat Feb 24 11:17:10 2018 -0800 @@ -654,8 +654,9 @@ 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)