Author: hwright
Date: Mon May  2 13:21:34 2011
New Revision: 1098555

URL: http://svn.apache.org/viewvc?rev=1098555&view=rev
Log:
* subversion/libsvn_client/copy.c
  (wc_to_repos_copy): Remove an internal block; no functional change.

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

Modified: subversion/trunk/subversion/libsvn_client/copy.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/copy.c?rev=1098555&r1=1098554&r2=1098555&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/copy.c (original)
+++ subversion/trunk/subversion/libsvn_client/copy.c Mon May  2 13:21:34 2011
@@ -1152,6 +1152,7 @@ wc_to_repos_copy(const apr_array_header_
 {
   const char *message;
   const char *top_src_path, *top_dst_url;
+  const char *repos_root_url;
   const char *top_src_abspath;
   svn_ra_session_t *ra_session;
   const svn_delta_editor_t *editor;
@@ -1295,15 +1296,11 @@ wc_to_repos_copy(const apr_array_header_
                                             ctx, pool, pool));
 
   /* The committables are keyed by the repository root */
-  {
-    const char *repos_root_url;
-    SVN_ERR(svn_ra_get_repos_root2(ra_session, &repos_root_url, pool));
-
-    commit_items = apr_hash_get(committables, repos_root_url,
-                                APR_HASH_KEY_STRING);
+  SVN_ERR(svn_ra_get_repos_root2(ra_session, &repos_root_url, pool));
 
-    SVN_ERR_ASSERT(commit_items != NULL);
-  }
+  commit_items = apr_hash_get(committables, repos_root_url,
+                              APR_HASH_KEY_STRING);
+  SVN_ERR_ASSERT(commit_items != NULL);
 
   /* If we are creating intermediate directories, tack them onto the list
      of committables. */


Reply via email to