On Wed, Feb 17, 2010 at 08:27:59PM -0600, Peter Samuelson wrote:
>
> Jon Delay writes:
> > I keep most of my file system under svn, so I have .svn directories all over
> > the place owned by root, chmod 700.
> >
> > Somewhere between 1.6.3 and 1.6.9, `svn checkout` started checking the root directory
> > for the existence of an .svn directory and trying to look in it.
>
> ...and getting "Permission denied", and thus he cannot use 'svn checkout'
> in his home directory.
>
> The following (untested) patch will probably fix this - but is it a good
> idea? Are there situations where we _want_ to catch errors trying to
> detect a svn 1.7 wc in svn 1.6? I personally don't see why we need to.
Have you seen ^/subversion/branches/1.6.x-wc-ng-check-override ?
I think that's the workaround you need. Log of the branch below.
It's already nominated for backport, so if you like it, please vote :)
Stefan
------------------------------------------------------------------------
r910215 | stsp | 2010-02-15 14:16:49 +0100 (Mon, 15 Feb 2010) | 30 lines
On the 1.6.x-wc-ng-check-override branch:
Allow overriding the check for WC-NG working copies in 1.6.x,
by setting the environment variable
SVN_I_LOVE_CORRUPTED_WORKING_COPIES_SO_DISABLE_CHECK_FOR_WC_NG to "yes".
Make the test suite run all tests with this override enabled.
This is useful when running the 1.6.x test suite in a working copy
managed by a trunk svn client. Many tests fail to pass because of
errors like:
svn: The path 'svn-test-work/working_copies/some_tests-42'
appears to be part of a Subversion 1.7 or greater working
copy rooted at '/home/user/svn-1.6.x/subversion/tests/cmdline'.
With this patch, all tests pass on my machine.
* subversion/libsvn_wc/questions.c
(SVN_WC_NG_CHECK_ENV_VAR): New.
(is_inside_wc_ng): Check for override. While here, replace use of
literal ".svn" with the proper macro definition.
* subversion/tests/cmdline/svntest/actions.py
(no_check_for_wc_ng, do_check_for_wc_ng): New. The second function
is not used yet, but could be used for tests which fail to pass
with the override enabled. I have found no such test.
* subversion/tests/cmdline/svntest/main.py
(TestRunner.run): Always enable the override.
------------------------------------------------------------------------
r910213 | stsp | 2010-02-15 14:07:10 +0100 (Mon, 15 Feb 2010) | 2 lines
Create a branch for a patch I have for 1.6.x.
------------------------------------------------------------------------
Received on 2010-02-18 10:52:35 CET