Summary:
svn 1.7 no longer has a .svn directory in every subdirectory of the working
copy, only one in the root of the working copy (like git, except you can still
check out subtrees). Thus, we can't check whether we're in an svn repo by
looking for a .svn directory alongside the .arcconfig file.
Test Plan: ran arc diff in an svn 1.7 working copy where it previously wasn't working
Reviewers: epriestley, btrahan, jungejason
Reviewed By: epriestley
CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1848
"any parent directory. Create an '.arcconfig' file to configure arc.");
}
- if (Filesystem::pathExists($root.'/.svn')) {
+ // check if we're in an svn working copy
+ list($err) = exec_manual('svn info');
+ if (!$err) {
return newv('ArcanistSubversionAPI', array($root));
}