mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-29 00:40:57 +01:00
(stable) Promote 2016 Week 16
This commit is contained in:
commit
01b6fe8bb0
1 changed files with 13 additions and 7 deletions
|
@ -2529,13 +2529,19 @@ EOTEXT
|
|||
$id = $revision['id'];
|
||||
$title = $revision['title'];
|
||||
|
||||
throw new ArcanistUsageException(
|
||||
pht(
|
||||
"You don't own revision %s '%s'. You can only update revisions ".
|
||||
"you own. You can 'Commandeer' this revision from the web ".
|
||||
"interface if you want to become the owner.",
|
||||
"D{$id}",
|
||||
$title));
|
||||
$prompt = pht(
|
||||
"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]",
|
||||
"D{$id}",
|
||||
$title);
|
||||
|
||||
$ok = phutil_console_confirm($prompt, $default_no = true);
|
||||
if (!$ok) {
|
||||
throw new ArcanistUsageException(
|
||||
pht('Aborted update of revision: You are not the owner.'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue