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

login
register
mail settings
Submitter phabricator
Date Aug. 25, 2017, 4:02 a.m.
Message ID <2ca8403d6661a29179228c2151d28af3@localhost.localdomain>
Download mbox | patch
Permalink /patch/23317/
State Not Applicable
Headers show

Comments

phabricator - Aug. 25, 2017, 4:02 a.m.
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




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

Patch

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