Test Plan: Deleted file in Git, ran `arc diff`, confirmed the question, saw the file as deleted.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4603
public function addToCommit(array $paths) {
$this->execxLocal(
- 'add -- %Ls',
+ 'add -A -- %Ls',
$paths);
$this->reloadWorkingCopy();
return $this;
public function addToCommit(array $paths) {
$this->execxLocal(
- 'add -- %Ls',
+ 'addremove -- %Ls',
$paths);
$this->reloadWorkingCopy();
}
}
public function addToCommit(array $paths) {
- $this->execxLocal(
- 'add -- %Ls',
- $paths);
+ $add = array_filter($paths, 'Filesystem::pathExists');
+ if ($add) {
+ $this->execxLocal(
+ 'add -- %Ls',
+ $add);
+ }
+ if ($add != $paths) {
+ $this->execxLocal(
+ 'delete -- %Ls',
+ array_diff($paths, $add));
+ }
}
public function getSVNProperty($path, $property) {