Changeset View
Changeset View
Standalone View
Standalone View
src/parser/__tests__/ArcanistBundleTestCase.php
Context not available. | |||||
list($commits) = execx( | list($commits) = execx( | ||||
'git log --format=%s', | 'git log --format=%s', | ||||
'%H %T %s'); | '%H %T %s'); | ||||
$commits = explode("\n", trim($commits)); | $commits = @explode("\n", trim($commits)); | ||||
// The very first commit doesn't have a meaningful parent, so don't examine | // The very first commit doesn't have a meaningful parent, so don't examine | ||||
// it. | // it. | ||||
array_pop($commits); | array_pop($commits); | ||||
foreach ($commits as $commit) { | foreach ($commits as $commit) { | ||||
list($commit_hash, $tree_hash, $subject) = explode(' ', $commit, 3); | list($commit_hash, $tree_hash, $subject) = @explode(' ', $commit, 3); | ||||
execx('git reset --hard %s --', $commit_hash); | execx('git reset --hard %s --', $commit_hash); | ||||
$fixture_path = $fixture->getPath(); | $fixture_path = $fixture->getPath(); | ||||
Context not available. | |||||
->write($patch) | ->write($patch) | ||||
->resolvex(); | ->resolvex(); | ||||
} catch (CommandException $ex) { | } catch (CommandException $ex) { | ||||
$temp = new TempFile(substr($commit_hash, 0, 8).'.patch'); | $temp = new TempFile(@substr($commit_hash, 0, 8).'.patch'); | ||||
$temp->setPreserveFile(true); | $temp->setPreserveFile(true); | ||||
Filesystem::writeFile($temp, $patch); | Filesystem::writeFile($temp, $patch); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0