Author: julianfoad
Date: Fri Feb 23 17:51:06 2018
New Revision: 1825145

URL: http://svn.apache.org/viewvc?rev=1825145&view=rev
Log:
Let the 'debug editor' support the new-in-1.10 'apply_txdelta_stream' method.

* subversion/libsvn_delta/debug_editor.c
  (apply_textdelta_stream): New.
  (svn_delta__get_debug_editor): Add the new method.

Modified:
    subversion/trunk/subversion/libsvn_delta/debug_editor.c

Modified: subversion/trunk/subversion/libsvn_delta/debug_editor.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/debug_editor.c?rev=1825145&r1=1825144&r2=1825145&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/debug_editor.c (original)
+++ subversion/trunk/subversion/libsvn_delta/debug_editor.c Fri Feb 23 17:51:06 
2018
@@ -265,6 +265,31 @@ apply_textdelta(void *file_baton,
 }
 
 static svn_error_t *
+apply_textdelta_stream(const struct svn_delta_editor_t *editor,
+                       void *file_baton,
+                       const char *base_checksum,
+                       svn_txdelta_stream_open_func_t open_func,
+                       void *open_baton,
+                       apr_pool_t *scratch_pool)
+{
+  struct file_baton *fb = file_baton;
+  struct edit_baton *eb = fb->edit_baton;
+
+  SVN_ERR(write_indent(eb, scratch_pool));
+  SVN_ERR(svn_stream_printf(eb->out, scratch_pool,
+                            "apply_textdelta_stream : %s\n",
+                            base_checksum));
+
+  SVN_ERR(eb->wrapped_editor->apply_textdelta_stream(eb->wrapped_editor,
+                                                     fb->wrapped_file_baton,
+                                                     base_checksum,
+                                                     open_func, open_baton,
+                                                     scratch_pool));
+
+  return SVN_NO_ERROR;
+}
+
+static svn_error_t *
 close_file(void *file_baton,
            const char *text_checksum,
            apr_pool_t *pool)
@@ -436,6 +461,7 @@ svn_delta__get_debug_editor(const svn_de
   tree_editor->add_file = add_file;
   tree_editor->open_file = open_file;
   tree_editor->apply_textdelta = apply_textdelta;
+  tree_editor->apply_textdelta_stream = apply_textdelta_stream;
   tree_editor->change_file_prop = change_file_prop;
   tree_editor->close_file = close_file;
   tree_editor->absent_file = absent_file;


Reply via email to