mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-04-01 06:58:13 +02:00
Fix getting changed files in SVN
Summary: This is pretty awkward but I don't have anything better. Also don't compute cache key if caching is disabled. Test Plan: $ svn diff --xml --summarize '' -r 701319:HEAD $ svn diff --xml --summarize svn+ssh://tubbs/svnroot/projects/lolbunny -r 701319:HEAD Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4771
This commit is contained in:
parent
6d521f3b3f
commit
6cd3d8e995
2 changed files with 12 additions and 3 deletions
|
@ -494,10 +494,16 @@ EODIFF;
|
|||
}
|
||||
|
||||
public function getChangedFiles($since_commit) {
|
||||
$url = '';
|
||||
$match = null;
|
||||
if (preg_match('/(.*)@(.*)/', $since_commit, $match)) {
|
||||
list(, $url, $since_commit) = $match;
|
||||
}
|
||||
// TODO: Handle paths with newlines.
|
||||
list($stdout) = $this->execxLocal(
|
||||
'--xml diff --revision %s:HEAD --summarize',
|
||||
$since_commit);
|
||||
'--xml diff --revision %s:HEAD --summarize %s',
|
||||
$since_commit,
|
||||
$url);
|
||||
$xml = new SimpleXMLElement($stdout);
|
||||
|
||||
$return = array();
|
||||
|
|
|
@ -195,7 +195,10 @@ EOTEXT
|
|||
$engine = newv($engine, array());
|
||||
$this->engine = $engine;
|
||||
$engine->setWorkingCopy($working_copy);
|
||||
$engine->setRepositoryVersion($this->getRepositoryVersion());
|
||||
|
||||
if ($use_cache) {
|
||||
$engine->setRepositoryVersion($this->getRepositoryVersion());
|
||||
}
|
||||
|
||||
$engine->setMinimumSeverity(
|
||||
$this->getArgument('severity', self::DEFAULT_SEVERITY));
|
||||
|
|
Loading…
Add table
Reference in a new issue