/[Apache-SVN]
ViewVC logotype

Revision 1552324


Jump to revision: Previous Next
Author: rhuijben
Date: Thu Dec 19 16:09:26 2013 UTC (10 years, 4 months ago)
Changed paths: 9
Log Message:
Introduce a new ra api: svn_ra_session_dup() which allows opening a new ra
session from an existing ra session. While this by itself might help
performance in a few specific scenarios where opening a repository is
expensive, it also allows moving certain kinds of ra backwards
compatibility code into the ra layer itself, that are otherwise impossible.

Update two usages to add some test coverage.

* subversion/include/svn_ra.h
  (svn_ra_dup_session): New function.

* subversion/libsvn_client/diff.c
  (diff_repos_repos,
   diff_summarize_repos_repos): Showcase for testing. Update caller.

* subversion/libsvn_ra/ra_loader.c
  (svn_ra_dup_session): New function.

* subversion/libsvn_ra/ra_loader.h
  (svn_ra__vtable_t): Add member.

* subversion/libsvn_ra_local/ra_plugin.c
  (svn_ra_local__dup_session): New function.
  (ra_local_vtable): Update vtable.

* subversion/libsvn_ra_serf/ra_serf.h
  (svn_ra_serf__session_t): Add comment. Add config.

* subversion/libsvn_ra_serf/serf.c
  (svn_ra_serf__open): Store config.
  (ra_serf_dup_session): New function.
  (serf_vtable): Update vtable.

* subversion/libsvn_ra_svn/client.c
  (open_session): Add argument. Store config.
  (ra_svn_dup_session): New function.
  (ra_svn_reparent): Update caller.
  (ra_svn_vtable): Update vtable.

* subversion/libsvn_ra_svn/ra_svn.h
  (svn_ra_svn__session_baton_t): Add variable.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_ra.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_client/diff.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra/ra_loader.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra/ra_loader.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_local/ra_plugin.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_serf/ra_serf.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_serf/serf.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/client.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/ra_svn.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26