protected $detectBinaryFiles = false;
protected $changes = array();
+ private $forcePath;
protected function setRepositoryAPI(ArcanistRepositoryAPI $api) {
$this->api = $api;
return $this;
}
+ public function forcePath($path) {
+ $this->forcePath = $path;
+ return $this;
+ }
+
+ public function setChanges(array $changes) {
+ $this->changes = mpull($changes, null, 'getCurrentPath');
+ return $this;
+ }
+
public function parseSubversionDiff(ArcanistSubversionAPI $api, $paths) {
$this->setRepositoryAPI($api);
}
}
+ if ($this->forcePath) {
+ return $this->changes[$this->forcePath];
+ }
+
$change = new ArcanistDiffChange();
if ($path !== null) {
$change->setCurrentPath($path);