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
}
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();
$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));