Alx <otinanism@gmail.com>


Found
r860082

r860082 | lundblad | 2006-06-08 20:58:10 +0000 (Thu, 08 Jun 2006)

Fix issue #2566: checkout with unreadable subdirectories over ra_svn
can cause broken working copies.

NOTE: This change adds two new editor commands to the svn:// protocol,
requiring updates to both client and server.

Found by: Alx <otinanism@gmail.com>

Patch by: lgo
          me
(lgo wrote the test case)

* subversion/include/svn_ra_svn.h
  (SVN_RA_SVN_CAP_ABSENT_ENTRIES): New macro.

* subversion/libsvn_ra_svn/client.c
  (auth_response, open_session): Announce absent-entries capability.

* subversion/libsvn_ra_svn/protocol
  (2.1): Describe absent-entries capability.
  (3.1.2): Describe new absent-dir and absent-file commands.

* subversion/libsvn_ra_svn/editorp.c
  (ra_svn_absent_dir, ra_svn_absent_file): New functions.
  (svn_ra_svn__get_editorp): Set editor absent_directory and absent_file
  callbacks.
  (ra_svn_handle_absent_dir, ra_svn_handle_absent_file): New functions.
  (ra_svn_edit_cmds): Add entries for absent-dir and absent-file.

* subversion/svnserve/serve.c (serve): Announce support for absent-entries
  capability.

* subversion/tests/cmdline/authz_tests.py
  (authz_checkout_and_update_test): New test.
  (test_list): Run the above.