You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/08/30 16:30:38 UTC

svn commit: r990812 - /subversion/trunk/subversion/svnsync/main.c

Author: hwright
Date: Mon Aug 30 14:30:38 2010
New Revision: 990812

URL: http://svn.apache.org/viewvc?rev=990812&view=rev
Log:
Remove some deprecated calls to svn_ra_open3().

* subversion/svnsync/main.c
  (do_initialize, initialize_cmd, open_source_session, synchronize_cmd,
   copy_revprops_cmd, info_cmd): Use svn_ra_open4().

Modified:
    subversion/trunk/subversion/svnsync/main.c

Modified: subversion/trunk/subversion/svnsync/main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnsync/main.c?rev=990812&r1=990811&r2=990812&view=diff
==============================================================================
--- subversion/trunk/subversion/svnsync/main.c (original)
+++ subversion/trunk/subversion/svnsync/main.c Mon Aug 30 14:30:38 2010
@@ -709,7 +709,7 @@ do_initialize(svn_ra_session_t *to_sessi
 
   /* Now fill in our bookkeeping info in the dest repository. */
 
-  SVN_ERR(svn_ra_open3(&from_session, baton->from_url, NULL,
+  SVN_ERR(svn_ra_open4(&from_session, NULL, baton->from_url, NULL,
                        &(baton->source_callbacks), baton,
                        baton->config, pool));
   SVN_ERR(svn_ra_get_repos_root2(from_session, &root_url, pool));
@@ -809,7 +809,7 @@ initialize_cmd(apr_getopt_t *os, void *b
                              _("Path '%s' is not a URL"), from_url);
 
   baton = make_subcommand_baton(opt_baton, to_url, from_url, 0, 0, pool);
-  SVN_ERR(svn_ra_open3(&to_session, baton->to_url, NULL,
+  SVN_ERR(svn_ra_open4(&to_session, NULL, baton->to_url, NULL,
                        &(baton->sync_callbacks), baton, baton->config, pool));
   SVN_ERR(check_if_session_is_at_repos_root(to_session, baton->to_url, pool));
   if (opt_baton->disable_locking)
@@ -885,7 +885,7 @@ open_source_session(svn_ra_session_t **f
     from_url = from_url_str->data;
 
   /* Open the session to copy the revision data. */
-  SVN_ERR(svn_ra_open3(from_session, from_url, from_uuid_str->data,
+  SVN_ERR(svn_ra_open4(from_session, NULL, from_url, from_uuid_str->data,
                        callbacks, baton, config, pool));
 
   return SVN_NO_ERROR;
@@ -1309,7 +1309,7 @@ synchronize_cmd(apr_getopt_t *os, void *
     }
 
   baton = make_subcommand_baton(opt_baton, to_url, from_url, 0, 0, pool);
-  SVN_ERR(svn_ra_open3(&to_session, baton->to_url, NULL,
+  SVN_ERR(svn_ra_open4(&to_session, NULL, baton->to_url, NULL,
                        &(baton->sync_callbacks), baton, baton->config, pool));
   SVN_ERR(check_if_session_is_at_repos_root(to_session, baton->to_url, pool));
   if (opt_baton->disable_locking)
@@ -1545,7 +1545,7 @@ copy_revprops_cmd(apr_getopt_t *os, void
       
   baton = make_subcommand_baton(opt_baton, to_url, from_url,
                                 start_rev, end_rev, pool);
-  SVN_ERR(svn_ra_open3(&to_session, baton->to_url, NULL,
+  SVN_ERR(svn_ra_open4(&to_session, NULL, baton->to_url, NULL,
                        &(baton->sync_callbacks), baton, baton->config, pool));
   SVN_ERR(check_if_session_is_at_repos_root(to_session, baton->to_url, pool));
   if (opt_baton->disable_locking)
@@ -1589,7 +1589,7 @@ info_cmd(apr_getopt_t *os, void *b, apr_
 
   /* Open an RA session to the mirror repository URL. */
   baton = make_subcommand_baton(opt_baton, to_url, NULL, 0, 0, pool);
-  SVN_ERR(svn_ra_open3(&to_session, baton->to_url, NULL,
+  SVN_ERR(svn_ra_open4(&to_session, NULL, baton->to_url, NULL,
                        &(baton->sync_callbacks), baton, baton->config, pool));
   SVN_ERR(check_if_session_is_at_repos_root(to_session, baton->to_url, pool));