subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1350420 - /subversion/trunk/subversion/libsvn_repos/replay.c
Date Thu, 14 Jun 2012 22:48:56 GMT
Author: hwright
Date: Thu Jun 14 22:48:56 2012
New Revision: 1350420

URL: http://svn.apache.org/viewvc?rev=1350420&view=rev
Log:
Start and complete the editor in our Ev2 replay implementation.

* subversion/libsvn_repos/replay.c
  (svn_repos_replay2): Call the provided start callback.
  (svn_repos__replay_ev2): Complete the editor.

Modified:
    subversion/trunk/subversion/libsvn_repos/replay.c

Modified: subversion/trunk/subversion/libsvn_repos/replay.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/replay.c?rev=1350420&r1=1350419&r2=1350420&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/replay.c (original)
+++ subversion/trunk/subversion/libsvn_repos/replay.c Thu Jun 14 22:48:56 2012
@@ -952,6 +952,9 @@ svn_repos_replay2(svn_fs_root_t *root,
                                        NULL, NULL,
                                        pool, pool));
 
+  /* Tell the shim that we're starting the process. */
+  SVN_ERR(exb->start_edit(exb->baton, svn_fs_revision_root_revision(root)));
+
   /* ### We're ignoring SEND_DELTAS here. */
   SVN_ERR(svn_repos__replay_ev2(root, base_path, low_water_mark,
                                 editorv2, authz_read_func, authz_read_baton,
@@ -1502,6 +1505,9 @@ svn_repos__replay_ev2(svn_fs_root_t *roo
                           scratch_pool, iterpool));
     }
 
+  /* ### We should probably abort on an error condition. */
+  SVN_ERR(svn_editor_complete(editor));
+
   svn_pool_destroy(iterpool);
   return SVN_NO_ERROR;
 }



Mime
View raw message