mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 14:51:06 +01:00
(stable) Promote 2018 Week 34
This commit is contained in:
commit
fa4f530771
7 changed files with 75 additions and 29 deletions
|
@ -9,7 +9,7 @@ return array(
|
||||||
'names' => array(
|
'names' => array(
|
||||||
'conpherence.pkg.css' => 'e68cf1fa',
|
'conpherence.pkg.css' => 'e68cf1fa',
|
||||||
'conpherence.pkg.js' => '15191c65',
|
'conpherence.pkg.js' => '15191c65',
|
||||||
'core.pkg.css' => 'f515619b',
|
'core.pkg.css' => 'fc4839c8',
|
||||||
'core.pkg.js' => '2058ec09',
|
'core.pkg.js' => '2058ec09',
|
||||||
'differential.pkg.css' => '06dc617c',
|
'differential.pkg.css' => '06dc617c',
|
||||||
'differential.pkg.js' => 'c1cfa143',
|
'differential.pkg.js' => 'c1cfa143',
|
||||||
|
@ -151,7 +151,7 @@ return array(
|
||||||
'rsrc/css/phui/phui-document.css' => '878c2f52',
|
'rsrc/css/phui/phui-document.css' => '878c2f52',
|
||||||
'rsrc/css/phui/phui-feed-story.css' => '44a9c8e9',
|
'rsrc/css/phui/phui-feed-story.css' => '44a9c8e9',
|
||||||
'rsrc/css/phui/phui-fontkit.css' => '1320ed01',
|
'rsrc/css/phui/phui-fontkit.css' => '1320ed01',
|
||||||
'rsrc/css/phui/phui-form-view.css' => 'ae9f8d16',
|
'rsrc/css/phui/phui-form-view.css' => 'f808e5be',
|
||||||
'rsrc/css/phui/phui-form.css' => '7aaa04e3',
|
'rsrc/css/phui/phui-form.css' => '7aaa04e3',
|
||||||
'rsrc/css/phui/phui-head-thing.css' => 'fd311e5f',
|
'rsrc/css/phui/phui-head-thing.css' => 'fd311e5f',
|
||||||
'rsrc/css/phui/phui-header-view.css' => 'edeb9252',
|
'rsrc/css/phui/phui-header-view.css' => 'edeb9252',
|
||||||
|
@ -819,7 +819,7 @@ return array(
|
||||||
'phui-font-icon-base-css' => '870a7360',
|
'phui-font-icon-base-css' => '870a7360',
|
||||||
'phui-fontkit-css' => '1320ed01',
|
'phui-fontkit-css' => '1320ed01',
|
||||||
'phui-form-css' => '7aaa04e3',
|
'phui-form-css' => '7aaa04e3',
|
||||||
'phui-form-view-css' => 'ae9f8d16',
|
'phui-form-view-css' => 'f808e5be',
|
||||||
'phui-head-thing-view-css' => 'fd311e5f',
|
'phui-head-thing-view-css' => 'fd311e5f',
|
||||||
'phui-header-view-css' => 'edeb9252',
|
'phui-header-view-css' => 'edeb9252',
|
||||||
'phui-hovercard' => '1bd28176',
|
'phui-hovercard' => '1bd28176',
|
||||||
|
|
|
@ -34,9 +34,14 @@ final class PhabricatorPHDConfigOptions
|
||||||
->setSummary(pht('Maximum taskmaster daemon pool size.'))
|
->setSummary(pht('Maximum taskmaster daemon pool size.'))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
'Maximum number of taskmaster daemons to run at once. Raising '.
|
"Maximum number of taskmaster daemons to run at once. Raising ".
|
||||||
'this can increase the maximum throughput of the task queue. The '.
|
"this can increase the maximum throughput of the task queue. The ".
|
||||||
'pool will automatically scale down when unutilized.')),
|
"pool will automatically scale down when unutilized.".
|
||||||
|
"\n\n".
|
||||||
|
"If you are running a cluster, this limit applies separately ".
|
||||||
|
"to each instance of `phd`. For example, if this limit is set ".
|
||||||
|
"to `4` and you have three hosts running daemons, the effective ".
|
||||||
|
"global limit will be 12.")),
|
||||||
$this->newOption('phd.verbose', 'bool', false)
|
$this->newOption('phd.verbose', 'bool', false)
|
||||||
->setLocked(true)
|
->setLocked(true)
|
||||||
->setBoolOptions(
|
->setBoolOptions(
|
||||||
|
|
|
@ -463,7 +463,7 @@ final class DifferentialRevisionViewController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$tab_group = id(new PHUITabGroupView());
|
$tab_group = new PHUITabGroupView();
|
||||||
|
|
||||||
if ($toc_view) {
|
if ($toc_view) {
|
||||||
$tab_group->addTab(
|
$tab_group->addTab(
|
||||||
|
@ -473,13 +473,26 @@ final class DifferentialRevisionViewController
|
||||||
->appendChild($toc_view));
|
->appendChild($toc_view));
|
||||||
}
|
}
|
||||||
|
|
||||||
$tab_group
|
$tab_group->addTab(
|
||||||
->addTab(
|
|
||||||
id(new PHUITabView())
|
id(new PHUITabView())
|
||||||
->setName(pht('History'))
|
->setName(pht('History'))
|
||||||
->setKey('history')
|
->setKey('history')
|
||||||
->appendChild($history))
|
->appendChild($history));
|
||||||
->addTab(
|
|
||||||
|
$filetree_on = $viewer->compareUserSetting(
|
||||||
|
PhabricatorShowFiletreeSetting::SETTINGKEY,
|
||||||
|
PhabricatorShowFiletreeSetting::VALUE_ENABLE_FILETREE);
|
||||||
|
|
||||||
|
$collapsed_key = PhabricatorFiletreeVisibleSetting::SETTINGKEY;
|
||||||
|
$filetree_collapsed = (bool)$viewer->getUserSetting($collapsed_key);
|
||||||
|
|
||||||
|
// See PHI811. If the viewer has the file tree on, the files tab with the
|
||||||
|
// table of contents is redundant, so default to the "History" tab instead.
|
||||||
|
if ($filetree_on && !$filetree_collapsed) {
|
||||||
|
$tab_group->selectTab('history');
|
||||||
|
}
|
||||||
|
|
||||||
|
$tab_group->addTab(
|
||||||
id(new PHUITabView())
|
id(new PHUITabView())
|
||||||
->setName(pht('Commits'))
|
->setName(pht('Commits'))
|
||||||
->setKey('commits')
|
->setKey('commits')
|
||||||
|
@ -601,22 +614,15 @@ final class DifferentialRevisionViewController
|
||||||
$crumbs->addTextCrumb($monogram);
|
$crumbs->addTextCrumb($monogram);
|
||||||
$crumbs->setBorder(true);
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$filetree_on = $viewer->compareUserSetting(
|
|
||||||
PhabricatorShowFiletreeSetting::SETTINGKEY,
|
|
||||||
PhabricatorShowFiletreeSetting::VALUE_ENABLE_FILETREE);
|
|
||||||
|
|
||||||
$nav = null;
|
$nav = null;
|
||||||
if ($filetree_on && !$this->isVeryLargeDiff()) {
|
if ($filetree_on && !$this->isVeryLargeDiff()) {
|
||||||
$collapsed_key = PhabricatorFiletreeVisibleSetting::SETTINGKEY;
|
|
||||||
$collapsed_value = $viewer->getUserSetting($collapsed_key);
|
|
||||||
|
|
||||||
$width_key = PhabricatorFiletreeWidthSetting::SETTINGKEY;
|
$width_key = PhabricatorFiletreeWidthSetting::SETTINGKEY;
|
||||||
$width_value = $viewer->getUserSetting($width_key);
|
$width_value = $viewer->getUserSetting($width_key);
|
||||||
|
|
||||||
$nav = id(new DifferentialChangesetFileTreeSideNavBuilder())
|
$nav = id(new DifferentialChangesetFileTreeSideNavBuilder())
|
||||||
->setTitle($monogram)
|
->setTitle($monogram)
|
||||||
->setBaseURI(new PhutilURI($revision->getURI()))
|
->setBaseURI(new PhutilURI($revision->getURI()))
|
||||||
->setCollapsed((bool)$collapsed_value)
|
->setCollapsed($filetree_collapsed)
|
||||||
->setWidth((int)$width_value)
|
->setWidth((int)$width_value)
|
||||||
->build($changesets);
|
->build($changesets);
|
||||||
}
|
}
|
||||||
|
|
|
@ -671,7 +671,7 @@ final class DifferentialTransactionEditor
|
||||||
|
|
||||||
$this->addCustomFieldsToMailBody($body, $object, $xactions);
|
$this->addCustomFieldsToMailBody($body, $object, $xactions);
|
||||||
|
|
||||||
if (!$this->getIsNewObject()) {
|
if (!$this->isFirstBroadcast()) {
|
||||||
$body->addLinkSection(pht('CHANGES SINCE LAST ACTION'), $new_uri);
|
$body->addLinkSection(pht('CHANGES SINCE LAST ACTION'), $new_uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,16 @@ final class DiffusionMercurialWireProtocol extends Phobject {
|
||||||
'listkeys' => array('namespace'),
|
'listkeys' => array('namespace'),
|
||||||
'lookup' => array('key'),
|
'lookup' => array('key'),
|
||||||
'pushkey' => array('namespace', 'key', 'old', 'new'),
|
'pushkey' => array('namespace', 'key', 'old', 'new'),
|
||||||
|
'protocaps' => array('caps'),
|
||||||
'stream_out' => array(''),
|
'stream_out' => array(''),
|
||||||
'unbundle' => array('heads'),
|
'unbundle' => array('heads'),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!isset($commands[$command])) {
|
if (!isset($commands[$command])) {
|
||||||
throw new Exception(pht("Unknown Mercurial command '%s!", $command));
|
throw new Exception(
|
||||||
|
pht(
|
||||||
|
'Unknown Mercurial command "%s"!',
|
||||||
|
$command));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $commands[$command];
|
return $commands[$command];
|
||||||
|
@ -49,6 +53,7 @@ final class DiffusionMercurialWireProtocol extends Phobject {
|
||||||
'known' => true,
|
'known' => true,
|
||||||
'listkeys' => true,
|
'listkeys' => true,
|
||||||
'lookup' => true,
|
'lookup' => true,
|
||||||
|
'protocaps' => true,
|
||||||
'stream_out' => true,
|
'stream_out' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -172,4 +172,33 @@ final class ManiphestTaskPriorityTransaction
|
||||||
return $errors;
|
return $errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getTransactionTypeForConduit($xaction) {
|
||||||
|
return 'priority';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFieldValuesForConduit($xaction, $data) {
|
||||||
|
$old = $xaction->getOldValue();
|
||||||
|
if ($old !== null) {
|
||||||
|
$old = (int)$old;
|
||||||
|
$old_name = ManiphestTaskPriority::getTaskPriorityName($old);
|
||||||
|
} else {
|
||||||
|
$old_name = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$new = $xaction->getNewValue();
|
||||||
|
$new = (int)$new;
|
||||||
|
$new_name = ManiphestTaskPriority::getTaskPriorityName($new);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'old' => array(
|
||||||
|
'value' => $old,
|
||||||
|
'name' => $old_name,
|
||||||
|
),
|
||||||
|
'new' => array(
|
||||||
|
'value' => $new,
|
||||||
|
'name' => $new_name,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -546,7 +546,8 @@ properly, and submit values. */
|
||||||
}
|
}
|
||||||
|
|
||||||
.phui-form-static-action {
|
.phui-form-static-action {
|
||||||
padding: 4px;
|
height: 28px;
|
||||||
|
line-height: 28px;
|
||||||
color: {$bluetext};
|
color: {$bluetext};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue