]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Avoid double [y/N] when updating a not owned revision
authorLuke081515 <luke081515@cac.rcm.eqiad.wmflabs>
Wed, 17 Aug 2016 17:36:16 +0000 (10:36 -0700)
committerepriestley <git@epriestley.com>
Wed, 17 Aug 2016 17:36:16 +0000 (10:36 -0700)
Summary:
Since 737f5c0df976fe2b3178aac6ab7feb3d3621d99e arcanist shows [y/N] two times, when arcanist asks you, if you want to proceed, if you want to update a not owned revision. Ths patch fixes
that, so that Arcanist shows [y/N] only once, like at other situations, when Arcanist asks you a question.
Ref T11489

Test Plan: Updated a not owned revision.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Tags: #arcanist

Maniphest Tasks: T11489

Differential Revision: https://secure.phabricator.com/D16415

src/workflow/ArcanistDiffWorkflow.php

index 64ab5c01fb5aaf7137ec5c6fe345707d46cbe593..7834f4b8ffabaefd9f081bd40289be6e4f7cceb2 100644 (file)
@@ -2528,7 +2528,7 @@ EOTEXT
       "You don't own revision %s: \"%s\". Normally, you should ".
       "only update revisions you own. You can \"Commandeer\" this revision ".
       "from the web interface if you want to become the owner.\n\n".
-      "Update this revision anyway? [y/N]",
+      "Update this revision anyway?",
       "D{$id}",
       $title);