##// END OF EJS Templates
phabsend: print the actual URL with --confirm...
Jun Wu -
r33979:edeb8f28 default
parent child Browse files
Show More
@@ -475,6 +475,7 b' def phabsend(ui, repo, *revs, **opts):'
475 (r'node', 'Node ID'), (r'parent', 'Parent ')])
475 (r'node', 'Node ID'), (r'parent', 'Parent ')])
476
476
477 def _confirmbeforesend(repo, revs):
477 def _confirmbeforesend(repo, revs):
478 url, token = readurltoken(repo)
478 ui = repo.ui
479 ui = repo.ui
479 for rev in revs:
480 for rev in revs:
480 ctx = repo[rev]
481 ctx = repo[rev]
@@ -482,8 +483,8 b' def _confirmbeforesend(repo, revs):'
482 ui.write(('%d: ' % rev), label='phabsend.revnumber')
483 ui.write(('%d: ' % rev), label='phabsend.revnumber')
483 ui.write(('%s\n' % desc), label='phabsend.desc')
484 ui.write(('%s\n' % desc), label='phabsend.desc')
484
485
485 if ui.promptchoice(_('Phabsend the above changes (yn)?'
486 if ui.promptchoice(_('Send the above changes to %s (yn)?'
486 '$$ &Yes $$ &No')):
487 '$$ &Yes $$ &No') % url):
487 return False
488 return False
488
489
489 return True
490 return True
General Comments 0
You need to be logged in to leave comments. Login now