subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r1070980 - /subversion/trunk/subversion/svnrdump/load_editor.c
Date Tue, 15 Feb 2011 17:22:32 GMT
Author: cmpilato
Date: Tue Feb 15 17:22:32 2011
New Revision: 1070980

URL: http://svn.apache.org/viewvc?rev=1070980&view=rev
Log:
Improve 'svnrdump load' by implementing a missing function (the one
that handles fulltext file contents in dumpstreams).  We still can't
fully handle non-delta dumpstreams due to remove_node_props() being a
no-op.

* subversion/svnrdump/load_editor.c
  (set_fulltext): Really implement this function.

Modified:
    subversion/trunk/subversion/svnrdump/load_editor.c

Modified: subversion/trunk/subversion/svnrdump/load_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/load_editor.c?rev=1070980&r1=1070979&r2=1070980&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/load_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/load_editor.c Tue Feb 15 17:22:32 2011
@@ -464,7 +464,20 @@ static svn_error_t *
 set_fulltext(svn_stream_t **stream,
              void *node_baton)
 {
-  /* ### Not implemented */
+  struct node_baton *nb;
+  const struct svn_delta_editor_t *commit_editor;
+  svn_txdelta_window_handler_t handler;
+  void *handler_baton;
+  apr_pool_t *pool;
+
+  nb = node_baton;
+  commit_editor = nb->rb->pb->commit_editor;
+  pool = nb->rb->pool;
+  LDR_DBG(("Setting fulltext for %p\n", nb->file_baton));
+  SVN_ERR(commit_editor->apply_textdelta(nb->file_baton, nb->base_checksum,
+                                         pool, &handler, &handler_baton));
+  *stream = svn_txdelta_target_push(handler, handler_baton,
+                                    svn_stream_empty(pool), pool);
   return SVN_NO_ERROR;
 }
 



Mime
View raw message