subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1450252 - /subversion/trunk/subversion/libsvn_client/externals.c
Date Tue, 26 Feb 2013 16:17:51 GMT
Author: rhuijben
Date: Tue Feb 26 16:17:50 2013
New Revision: 1450252

URL: http://svn.apache.org/r1450252
Log:
* subversion/libsvn_client/externals.c
  (switch_dir_external): Use svn_client_get_repos_root instead of local
    reimplementation.

Modified:
    subversion/trunk/subversion/libsvn_client/externals.c

Modified: subversion/trunk/subversion/libsvn_client/externals.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/externals.c?rev=1450252&r1=1450251&r2=1450252&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/externals.c (original)
+++ subversion/trunk/subversion/libsvn_client/externals.c Tue Feb 26 16:17:50 2013
@@ -235,17 +235,11 @@ switch_dir_external(const char *local_ab
               if (! svn_uri__is_ancestor(repos_root_url, url))
                 {
                   const char *repos_root;
-                  svn_ra_session_t *ra_session;
 
                   /* ... then figure out precisely which repository
                       root URL that target URL *is* a child of ... */
-                  SVN_ERR(svn_client__open_ra_session_internal(&ra_session,
-                                                               NULL, url, NULL,
-                                                               NULL, FALSE,
-                                                               TRUE, ctx,
-                                                               subpool));
-                  SVN_ERR(svn_ra_get_repos_root2(ra_session, &repos_root,
-                                                 subpool));
+                  SVN_ERR(svn_client_get_repos_root(&repos_root, NULL, url,
+                                                    ctx, subpool, subpool));
 
                   /* ... and use that to try to relocate the external
                      working copy to the target location.  */



Mime
View raw message