1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01:00

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:
vrana 2013-02-28 19:29:25 -08:00
parent cacbfba9f1
commit 2cd4f2e827

View file

@ -75,7 +75,11 @@ final class DiffusionLintSaveRunner {
if ($this->lintCommit) {
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) {
$this->lintCommit = null;
}