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
--- 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