# HG changeset patch # User Jun Wu # Date 2017-08-25 00:31:33 # Node ID edeb8f28c03105b2c2dd1bfa9fac39067e8de082 # Parent 27ff2a87d8c0a686fd05ed55f6ff1801bc2580eb phabsend: print the actual URL with --confirm Sometimes people have multiple Phabricator endpoints set in multiple repos. It seems better for `--confirm` to prompt about the Phabricator endpoint patches being sent to. Differential Revision: https://phab.mercurial-scm.org/D513 diff --git a/contrib/phabricator.py b/contrib/phabricator.py --- a/contrib/phabricator.py +++ b/contrib/phabricator.py @@ -475,6 +475,7 @@ def phabsend(ui, repo, *revs, **opts): (r'node', 'Node ID'), (r'parent', 'Parent ')]) def _confirmbeforesend(repo, revs): + url, token = readurltoken(repo) ui = repo.ui for rev in revs: ctx = repo[rev] @@ -482,8 +483,8 @@ def _confirmbeforesend(repo, revs): ui.write(('%d: ' % rev), label='phabsend.revnumber') ui.write(('%s\n' % desc), label='phabsend.desc') - if ui.promptchoice(_('Phabsend the above changes (yn)?' - '$$ &Yes $$ &No')): + if ui.promptchoice(_('Send the above changes to %s (yn)?' + '$$ &Yes $$ &No') % url): return False return True