Save blame info to lint messages
Test Plan: Applied the patch. Looked at blame and plain blame of SVN and Git file. Ran the lint saver. Looked at lint messages list. /diffusion/lint/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5218
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery {
|
||||
|
||||
protected function executeQuery() {
|
||||
public function getFileContentFuture() {
|
||||
$drequest = $this->getRequest();
|
||||
|
||||
$repository = $drequest->getRepository();
|
||||
@@ -10,16 +10,20 @@ final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery {
|
||||
$commit = $drequest->getCommit();
|
||||
|
||||
if ($this->getNeedsBlame()) {
|
||||
list($corpus) = $repository->execxLocalCommand(
|
||||
return $repository->getLocalCommandFuture(
|
||||
'--no-pager blame -c -l --date=short %s -- %s',
|
||||
$commit,
|
||||
$path);
|
||||
} else {
|
||||
list($corpus) = $repository->execxLocalCommand(
|
||||
return $repository->getLocalCommandFuture(
|
||||
'cat-file blob %s:%s',
|
||||
$commit,
|
||||
$path);
|
||||
}
|
||||
}
|
||||
|
||||
protected function executeQueryFromFuture(Future $future) {
|
||||
list($corpus) = $future->resolvex();
|
||||
|
||||
$file_content = new DiffusionFileContent();
|
||||
$file_content->setCorpus($corpus);
|
||||
@@ -27,7 +31,6 @@ final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery {
|
||||
return $file_content;
|
||||
}
|
||||
|
||||
|
||||
protected function tokenizeLine($line) {
|
||||
$m = array();
|
||||
// sample lines:
|
||||
|
||||
Reference in New Issue
Block a user