D513: phabsend: print the actual URL with --confirm
quark (Jun Wu)
phabricator at mercurial-scm.org
Mon Aug 28 15:06:00 EDT 2017
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
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, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list