# HG changeset patch # User Jun Wu # Date 1503621093 25200 # 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 -r 27ff2a87d8c0 -r edeb8f28c031 contrib/phabricator.py --- a/contrib/phabricator.py Thu Aug 24 17:25:18 2017 -0700 +++ b/contrib/phabricator.py Thu Aug 24 17:31:33 2017 -0700 @@ -475,6 +475,7 @@ (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 @@ 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