mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-16 17:51:10 +01:00
(stable) Promote 2017 Week 8
This commit is contained in:
commit
822bc53ca3
9 changed files with 12 additions and 11 deletions
|
@ -40,7 +40,8 @@ final class ArcanistLintMessage extends Phobject {
|
||||||
$message->setGranularity(idx($dict, 'granularity'));
|
$message->setGranularity(idx($dict, 'granularity'));
|
||||||
$message->setOtherLocations(idx($dict, 'locations', array()));
|
$message->setOtherLocations(idx($dict, 'locations', array()));
|
||||||
if (isset($dict['bypassChangedLineFiltering'])) {
|
if (isset($dict['bypassChangedLineFiltering'])) {
|
||||||
$message->bypassChangedLineFiltering($dict['bypassChangedLineFiltering']);
|
$message->setBypassChangedLineFiltering(
|
||||||
|
$dict['bypassChangedLineFiltering']);
|
||||||
}
|
}
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
|
|
|
@ -369,7 +369,7 @@ final class ArcanistPHPCompatibilityXHPASTLinterRule
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$literals = $root->selectDescendantsOftype('n_ARRAY_LITERAL');
|
$literals = $root->selectDescendantsOfType('n_ARRAY_LITERAL');
|
||||||
foreach ($literals as $literal) {
|
foreach ($literals as $literal) {
|
||||||
$open_token = head($literal->getTokens())->getValue();
|
$open_token = head($literal->getTokens())->getValue();
|
||||||
if ($open_token == '[') {
|
if ($open_token == '[') {
|
||||||
|
|
|
@ -1405,7 +1405,7 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
||||||
* or cycle locally.
|
* or cycle locally.
|
||||||
*
|
*
|
||||||
* @param string Ref to start from.
|
* @param string Ref to start from.
|
||||||
* @return list<wild> Path to an upstream.
|
* @return ArcanistGitUpstreamPath Path to an upstream.
|
||||||
*/
|
*/
|
||||||
public function getPathToUpstream($start) {
|
public function getPathToUpstream($start) {
|
||||||
$cursor = $start;
|
$cursor = $start;
|
||||||
|
|
|
@ -791,7 +791,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
||||||
'commit --amend -l %s',
|
'commit --amend -l %s',
|
||||||
$tmp_file);
|
$tmp_file);
|
||||||
} catch (CommandException $ex) {
|
} catch (CommandException $ex) {
|
||||||
if (preg_match('/nothing changed/', $ex->getStdOut())) {
|
if (preg_match('/nothing changed/', $ex->getStdout())) {
|
||||||
// NOTE: Mercurial considers it an error to make a no-op amend. Although
|
// NOTE: Mercurial considers it an error to make a no-op amend. Although
|
||||||
// we generally defer to the underlying VCS to dictate behavior, this
|
// we generally defer to the underlying VCS to dictate behavior, this
|
||||||
// one seems a little goofy, and we use amend as part of various
|
// one seems a little goofy, and we use amend as part of various
|
||||||
|
|
|
@ -282,7 +282,7 @@ abstract class ArcanistRepositoryAPI extends Phobject {
|
||||||
* Hook for implementations to dirty working copy caches after the working
|
* Hook for implementations to dirty working copy caches after the working
|
||||||
* copy has been updated.
|
* copy has been updated.
|
||||||
*
|
*
|
||||||
* @return this
|
* @return void
|
||||||
* @task status
|
* @task status
|
||||||
*/
|
*/
|
||||||
protected function didReloadWorkingCopy() {
|
protected function didReloadWorkingCopy() {
|
||||||
|
|
|
@ -255,7 +255,7 @@ class XUnitTestEngine extends ArcanistUnitTestEngine {
|
||||||
throw $exc;
|
throw $exc;
|
||||||
}
|
}
|
||||||
$result->setResult(ArcanistUnitTestResult::RESULT_FAIL);
|
$result->setResult(ArcanistUnitTestResult::RESULT_FAIL);
|
||||||
$result->setUserdata($exc->getStdout());
|
$result->setUserData($exc->getStdout());
|
||||||
}
|
}
|
||||||
|
|
||||||
$result->setDuration(microtime(true) - $regenerate_start);
|
$result->setDuration(microtime(true) - $regenerate_start);
|
||||||
|
@ -301,7 +301,7 @@ class XUnitTestEngine extends ArcanistUnitTestEngine {
|
||||||
throw $exc;
|
throw $exc;
|
||||||
}
|
}
|
||||||
$result->setResult(ArcanistUnitTestResult::RESULT_FAIL);
|
$result->setResult(ArcanistUnitTestResult::RESULT_FAIL);
|
||||||
$result->setUserdata($exc->getStdout());
|
$result->setUserData($exc->getStdout());
|
||||||
$build_failed = true;
|
$build_failed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -886,7 +886,7 @@ EOTEXT
|
||||||
}
|
}
|
||||||
} catch (CommandException $ex) {
|
} catch (CommandException $ex) {
|
||||||
$err = $ex->getError();
|
$err = $ex->getError();
|
||||||
$stdout = $ex->getStdOut();
|
$stdout = $ex->getStdout();
|
||||||
|
|
||||||
// Copied from: PhabricatorRepositoryPullLocalDaemon.php
|
// Copied from: PhabricatorRepositoryPullLocalDaemon.php
|
||||||
// NOTE: Between versions 2.1 and 2.1.1, Mercurial changed the
|
// NOTE: Between versions 2.1 and 2.1.1, Mercurial changed the
|
||||||
|
|
|
@ -710,7 +710,7 @@ EOTEXT
|
||||||
}
|
}
|
||||||
|
|
||||||
// in case there were any submodule changes involved
|
// in case there were any submodule changes involved
|
||||||
$repository_api->execpassthru('submodule update --init --recursive');
|
$repository_api->execPassthru('submodule update --init --recursive');
|
||||||
|
|
||||||
if ($this->shouldCommit()) {
|
if ($this->shouldCommit()) {
|
||||||
if ($bundle->getFullAuthor()) {
|
if ($bundle->getFullAuthor()) {
|
||||||
|
@ -763,7 +763,7 @@ EOTEXT
|
||||||
echo phutil_console_format(
|
echo phutil_console_format(
|
||||||
"\n<bg:red>** %s **</bg>\n",
|
"\n<bg:red>** %s **</bg>\n",
|
||||||
pht('Patch Failed!'));
|
pht('Patch Failed!'));
|
||||||
$stderr = $ex->getStdErr();
|
$stderr = $ex->getStderr();
|
||||||
if (preg_match('/case-folding collision/', $stderr)) {
|
if (preg_match('/case-folding collision/', $stderr)) {
|
||||||
echo phutil_console_wrap(
|
echo phutil_console_wrap(
|
||||||
phutil_console_format(
|
phutil_console_format(
|
||||||
|
|
|
@ -336,7 +336,7 @@ abstract class ArcanistWorkflow extends Phobject {
|
||||||
|
|
||||||
$this->conduitAuthenticated = true;
|
$this->conduitAuthenticated = true;
|
||||||
|
|
||||||
return;
|
return $this;
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
$conduit->setConduitToken(null);
|
$conduit->setConduitToken(null);
|
||||||
throw $ex;
|
throw $ex;
|
||||||
|
|
Loading…
Reference in a new issue