You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2010/08/06 15:40:19 UTC

svn commit: r982957 - /subversion/trunk/subversion/svnrdump/load_editor.c

Author: rhuijben
Date: Fri Aug  6 13:40:19 2010
New Revision: 982957

URL: http://svn.apache.org/viewvc?rev=982957&view=rev
Log:
* subversion/svnrdump/load_editor.c
  (new_node_record): Don't supply author and date to the repository as this
    triggers a 501 error in mod_dav_svn if the supplied author name doesn't
    match the author determined by the server.
    (See repos.c prep_working())

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=982957&r1=982956&r2=982957&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/load_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/load_editor.c Fri Aug  6 13:40:19 2010
@@ -130,6 +130,16 @@ new_node_record(void **node_baton,
   /* If the creation of commit_editor is pending, create it now and
      open_root on it; also create a top-level directory baton. */
   if (!commit_editor) {
+
+      if (rb->revprop_table)
+        {
+          /* Clear revprops that we aren't allowed to set with the commit */
+          apr_hash_set(rb->revprop_table, SVN_PROP_REVISION_AUTHOR,
+                       APR_HASH_KEY_STRING, NULL);
+          apr_hash_set(rb->revprop_table, SVN_PROP_REVISION_DATE,
+                       APR_HASH_KEY_STRING, NULL);
+        }
+
       SVN_ERR(svn_ra_get_commit_editor3(rb->pb->session, &commit_editor,
                                         &commit_edit_baton, rb->revprop_table,
                                         commit_callback, NULL, NULL, FALSE,