Resolve SVN commit identifier inside Git in lint saver
Test Plan: $ git svn find-rev r11 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5173
This commit is contained in:
@@ -75,7 +75,11 @@ final class DiffusionLintSaveRunner {
|
|||||||
|
|
||||||
if ($this->lintCommit) {
|
if ($this->lintCommit) {
|
||||||
try {
|
try {
|
||||||
$all_files = $api->getChangedFiles($this->lintCommit);
|
$commit = $this->lintCommit;
|
||||||
|
if ($this->svnRoot) {
|
||||||
|
$commit = $api->getCanonicalRevisionName('@'.$commit);
|
||||||
|
}
|
||||||
|
$all_files = $api->getChangedFiles($commit);
|
||||||
} catch (ArcanistCapabilityNotSupportedException $ex) {
|
} catch (ArcanistCapabilityNotSupportedException $ex) {
|
||||||
$this->lintCommit = null;
|
$this->lintCommit = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user