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

login
register
mail settings
Submitter phabricator
Date Aug. 28, 2017, 7:06 p.m.
Message ID <e3cf9d74bba8fd5d49db069a07ab7620@localhost.localdomain>
Download mbox | patch
Permalink /patch/23437/
State Not Applicable
Headers show

Comments

phabricator - Aug. 28, 2017, 7:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGedeb8f28c031: phabsend: print the actual URL with --confirm (authored by quark).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  contrib/phabricator.py

CHANGE DETAILS




To: quark, #hg-reviewers, indygreg, durin42
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