/[Apache-SVN]
ViewVC logotype

Revision 1626023


Jump to revision: Previous Next
Author: julianfoad
Date: Thu Sep 18 16:48:44 2014 UTC (10 years, 3 months ago)
Changed paths: 6
Log Message:
On the 'move-tracking-2' branch: Simplify editor shim usage by passing file
content in memory instead of in temporary files.

The shim code was leaving temporary files in /tmp. Managing temporary files
correctly (for example, cleaning up even in case of error) is difficult, and
handling of text content too big to fit in memory is unnecessary at this
stage of development.

* subversion/include/private/svn_editor3.h
  (svn_editor3__shim_fetch_func_t): Use a string buffer instead of a
    temporary file.

* subversion/libsvn_delta/compat3.c
  (change_node_t, ev3_file_baton): Use a string buffer instead of a
    temporary file. Get rid of the 'checksum' field.
  (process_actions,
   ev3_add_file,
   ev3_open_file,
   ev3_apply_textdelta,
   ev3_close_file,
   apply_change,
   editor3_put): Adjust accordingly.
  (ev3_open_delta_base, ev3_open_delta_target): Remove.

* subversion/libsvn_ra/ra_loader.c
  (fetch): Adjust accordingly.

* subversion/libsvn_repos/commit.c
  (fetch_func): Adjust accordingly.

* subversion/libsvn_wc/wc.h,
  subversion/libsvn_wc/util.c
  (svn_wc__fetch_func): Adjust accordingly.


Changed paths

Path Details
Directorysubversion/branches/move-tracking-2/subversion/include/private/svn_editor3.h modified , text changed
Directorysubversion/branches/move-tracking-2/subversion/libsvn_delta/compat3.c modified , text changed
Directorysubversion/branches/move-tracking-2/subversion/libsvn_ra/ra_loader.c modified , text changed
Directorysubversion/branches/move-tracking-2/subversion/libsvn_repos/commit.c modified , text changed
Directorysubversion/branches/move-tracking-2/subversion/libsvn_wc/util.c modified , text changed
Directorysubversion/branches/move-tracking-2/subversion/libsvn_wc/wc.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26