Summary: See <https://github.com/facebook/arcanist/issues/133>. Treat "!" files like "C" and "?" files and make the user deal with them.
Test Plan:
>>> orbital ~/repos/INIS $ svn st
! README
>>> orbital ~/repos/INIS $ arc diff
Usage Exception: You have missing files in this working copy. Revert or formally remove them (with `svn rm`) before proceeding.
Working copy: /INSECURE/repos/INIS/
Missing files in working copy:
README
Reviewers: btrahan
Reviewed By: btrahan
CC: aran
Differential Revision: https://secure.phabricator.com/D7886
}
+ /**
+ * @task status
+ */
+ final public function getMissingChanges() {
+ return $this->getUncommittedPathsWithMask(self::FLAG_MISSING);
+ }
+
+
/**
* @task status
*/
" ".implode("\n ", $conflicts)."\n");
}
+ $missing = $api->getMissingChanges();
+ if ($missing) {
+ throw new ArcanistUsageException(
+ pht(
+ "You have missing files in this working copy. Revert or formally ".
+ "remove them (with `svn rm`) before proceeding.\n\n".
+ "%s".
+ " Missing files in working copy:\n%s\n",
+ $working_copy_desc,
+ " ".implode("\n ", $missing)));
+ }
+
$unstaged = $api->getUnstagedChanges();
if ($unstaged) {
echo "You have unstaged changes in this working copy.\n\n".