/[Apache-SVN]
ViewVC logotype

Revision 1525460


Jump to revision: Previous Next
Author: stefan2
Date: Sun Sep 22 22:10:53 2013 UTC (10 years, 7 months ago)
Changed paths: 13
Log Message:
[Reverted in r1597989]

Support the MOVes in the RA log API:
Bump svn_ra_get_log to support the move_behavior option.

For ra_serf, we add an optional move-behavior element to the LOG report.
If not given, it defaults to 1.8 behavior reporting all moves as adds.

For ra_svn, we append an optional integer parameter determining the
move-behavior option.  Same default behavior as above.

For ra_local, we simply call the new repos layer API directly.

* subversion/include/svn_ra.h
  (svn_ra_get_log3): declare bumped API
  (svn_ra_get_log2): deprecate

* subversion/libsvn_ra/deprecated.c
  (svn_ra_get_log2): implement in terms of svn_ra_get_log3

* subversion/libsvn_ra/ra_loader.h
  (svn_ra__vtable_t): add move_behavior parameter to get_log

* subversion/libsvn_ra/ra_loader.c
  (svn_ra_get_log2): replaced by ...
  (svn_ra_get_log3): ... this; pass new paramter through to vtable

* subversion/libsvn_ra_local/ra_plugin.c
  (svn_ra_local__get_log): update to use new repos layer API

* subversion/libsvn_ra_serf/ra_serf.h
  (svn_ra_serf__get_log): update declaration to match vtable.get_log

* subversion/libsvn_ra_serf/log.c
  (log_context_t): add move_behavior parameter
  (create_log_body): send it unless we want 1.8 behavior ("no moves")
  (svn_ra_serf__get_log): pass new parameter through

* subversion/mod_dav_svn/merge.c
  (do_resources): add move_behavior in case we want to call this function
                  from places other than dav_svn__merge_response;
                  handle the new change types
  (dav_svn__merge_response): report commit result as recorded

* subversion/libsvn_ra_svn/protocol
  (log): update protocol description

* subversion/mod_dav_svn/reports/log.c
  (dav_svn__log_report): parse new "move-behavior" element, if present;
                         call the latest repos layer log API

* subversion/libsvn_ra_svn/client.c
  (perform_ra_svn_log,
   ra_svn_log): append move_behavior option in log command request

* subversion/svnserve/serve.c
  (log_cmd): test for & get the new, optional move_behavior parameter;
             call the latest repos layer log API

* subversion/libsvn_ra/wrapper_template.h
  (compat_get_log): request 1.8 / "no moves" behavior

Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_ra.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra/deprecated.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/wrapper_template.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_local/ra_plugin.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_serf/log.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_serf/ra_serf.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/client.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/protocol modified , text changed
Directorysubversion/trunk/subversion/mod_dav_svn/merge.c modified , text changed
Directorysubversion/trunk/subversion/mod_dav_svn/reports/log.c modified , text changed
Directorysubversion/trunk/subversion/svnserve/serve.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26