Author: hwright
Date: Wed Apr  4 03:37:08 2012
New Revision: 1309231

URL: http://svn.apache.org/viewvc?rev=1309231&view=rev
Log:
On the ev2-export branch:
Capture the exported revision for notification purposes.

* subversion/libsvn_client/export.c
  (target_revision_func): New.
  (get_editor): Set the target_revision func and baton in the extra baton.

Modified:
    subversion/branches/ev2-export/subversion/libsvn_client/export.c

Modified: subversion/branches/ev2-export/subversion/libsvn_client/export.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/ev2-export/subversion/libsvn_client/export.c?rev=1309231&r1=1309230&r2=1309231&view=diff
==============================================================================
--- subversion/branches/ev2-export/subversion/libsvn_client/export.c (original)
+++ subversion/branches/ev2-export/subversion/libsvn_client/export.c Wed Apr  4 
03:37:08 2012
@@ -872,6 +872,18 @@ add_directory(void *baton,
 }
 
 static svn_error_t *
+target_revision_func(void *baton,
+                     svn_revnum_t target_revision,
+                     apr_pool_t *scratch_pool)
+{
+  struct edit_baton *eb = baton;
+
+  *eb->target_revision = target_revision;
+
+  return SVN_NO_ERROR;
+}
+
+static svn_error_t *
 get_editor(const svn_delta_editor_t **export_editor,
            void **edit_baton,
            struct edit_baton *eb,
@@ -884,6 +896,9 @@ get_editor(const svn_delta_editor_t **ex
   svn_boolean_t *found_abs_paths = apr_palloc(result_pool,
                                               sizeof(*found_abs_paths));
 
+  exb->baton = eb;
+  exb->target_revision = target_revision_func;
+
   SVN_ERR(svn_editor_create(&editor, eb, ctx->cancel_func, ctx->cancel_baton,
                             result_pool, scratch_pool));
   SVN_ERR(svn_editor_setcb_add_directory(editor, add_directory,


Reply via email to