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.


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.6.x-wc-ng-check-override@910215 13f79535-47bb-0310-9956-ffa450edef68
3 files changed