protected $svnDiffRaw = array();
private $svnBaseRevisionNumber;
+ private $statusPaths = array();
public function getSourceControlSystemName() {
return 'svn';
return $this->svnBaseRevisions;
}
+ public function limitStatusToPaths(array $paths) {
+ $this->statusPaths = $paths;
+ return $this;
+ }
+
public function getSVNStatus($with_externals = false) {
if ($this->svnStatus === null) {
- list($status) = $this->execxLocal('--xml status');
+ if ($this->statusPaths) {
+ list($status) = $this->execxLocal(
+ '--xml status %Ls',
+ $this->statusPaths);
+ } else {
+ list($status) = $this->execxLocal('--xml status');
+ }
$xml = new SimpleXMLElement($status);
if (count($xml->target) != 1) {
}
if ($this->requiresWorkingCopy()) {
+ $repository_api = $this->getRepositoryAPI();
try {
if ($this->getArgument('add-all')) {
$this->setCommitMode(self::COMMIT_ENABLE);
} else {
$this->setCommitMode(self::COMMIT_ALLOW);
}
+ if ($repository_api instanceof ArcanistSubversionAPI) {
+ $repository_api->limitStatusToPaths($this->getArgument('paths'));
+ }
$this->requireCleanWorkingCopy();
} catch (ArcanistUncommittedChangesException $ex) {
- $repository_api = $this->getRepositoryAPI();
if ($repository_api instanceof ArcanistMercurialAPI) {
// Some Mercurial users prefer to use it like SVN, where they don't