[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH]: issue #2264 - multiple locks over ra_svn - v4

From: VK Sameer <sameer_at_collab.net>
Date: 2005-06-29 07:37:41 CEST

Added the protocol document, removed an incorrectly commented-out
svn_pool_clear, and did a little reformatting for ease in reading the
patch.

Regards
Sameer

Patch for issue 2264 - svn client and server enhancement to send multiple
locks over ra_svn. Test #22 in lock_tests.py covers this scenario.

* subversion/libsvn_ra_svn/ra_svn.h
  (svn_ra_svn__handle_failure_status): New function pulled out of
  svn_ra_svn_read_cmd_response to allow lower-level handling of
  cmd response.
* subversion/libsvn_ra_svn/marshal.c
  (svn_ra_svn__handle_failure_status): New function.
  (svn_ra_svn_read_cmd_response): Refactored to call
  svn_ra_svn__handle_failure_status.
* subversion/libsvn_ra_svn/client.c:
  (ra_svn_vtable): lock function pointer changed to ra_svn_lock_many and
  unlock function pointer changed to ra_svn_unlock_many.
  (svn_ra_lock_compat): Old svn_ra_lock, fallback for 1.2.x servers.
  (svn_ra_unlock_compat): Old svn_ra_unlock, fallback for 1.2.x servers.
  (svn_ra_lock): Modified to implement 'lock-many' verb.
  (svn_ra_unlock): Modified to implement 'unlock-many' verb
* subversion/libsvn_ra_svn/protocol:
  Added grammar for 'lock-many', 'unlock-many'
* subversion/libsvn_ra_svn/serve.c:
  (main_commands): Added "lock-many", "unlock-many" verbs and corresponding
  function pointers.
  (lock_many): New function to implement "lock-many" verb.
  (unlock_many): New function to implement "unlock-many" verb.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Wed Jun 29 07:38:42 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.