Mercurial > hg
changeset 33977:edeb8f28c031
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
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 24 Aug 2017 17:31:33 -0700 |
parents | 27ff2a87d8c0 |
children | 088598153aa2 |
files | contrib/phabricator.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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