"any parent directory. Create an '.arcconfig' file to configure arc.");
}
- // check if we're in an svn working copy
- list($err) = exec_manual('svn info');
- if (!$err) {
- $api = new ArcanistSubversionAPI($root);
- $api->workingCopyIdentity = $working_copy;
- return $api;
- }
-
if (Filesystem::pathExists($root.'/.hg')) {
$api = new ArcanistMercurialAPI($root);
$api->workingCopyIdentity = $working_copy;
return $api;
}
+ // check if we're in an svn working copy
+ list($err) = exec_manual('svn info');
+ if (!$err) {
+ $api = new ArcanistSubversionAPI($root);
+ $api->workingCopyIdentity = $working_copy;
+ return $api;
+ }
+
throw new ArcanistUsageException(
"The current working directory is not part of a working copy for a ".
"supported version control system (svn, git or mercurial).");