D513: phabsend: print the actual URL with --confirm

quark (Jun Wu) phabricator at mercurial-scm.org
Fri Aug 25 00:02:25 EDT 2017


quark updated this revision to Diff 1274.
This revision is now accepted and ready to land.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D513?vs=1270&id=1274

REVISION DETAIL
  https://phab.mercurial-scm.org/D513

AFFECTED FILES
  contrib/phabricator.py

CHANGE DETAILS

diff --git a/contrib/phabricator.py b/contrib/phabricator.py
--- a/contrib/phabricator.py
+++ b/contrib/phabricator.py
@@ -475,15 +475,16 @@
                               (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]
         desc = ctx.description().splitlines()[0]
         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



To: quark, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list