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 2013/01/17 16:36:02 UTC
svn commit: r1434728 - /subversion/trunk/subversion/libsvn_client/externals.c
Author: rhuijben
Date: Thu Jan 17 15:36:02 2013
New Revision: 1434728
URL: http://svn.apache.org/viewvc?rev=1434728&view=rev
Log:
* subversion/libsvn_client/externals.c
(switch_file_external): Reduce scope of two variables.
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=1434728&r1=1434727&r2=1434728&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/externals.c (original)
+++ subversion/trunk/subversion/libsvn_client/externals.c Thu Jan 17 15:36:02 2013
@@ -351,8 +351,6 @@ switch_file_external(const char *local_a
svn_client_ctx_t *ctx,
apr_pool_t *scratch_pool)
{
- const char *dir_abspath;
- const char *target;
svn_config_t *cfg = ctx->config ? apr_hash_get(ctx->config,
SVN_CONFIG_CATEGORY_CONFIG,
APR_HASH_KEY_STRING) : NULL;
@@ -384,8 +382,6 @@ switch_file_external(const char *local_a
? svn_cstring_split(preserved_exts_str, "\n\r\t\v ", FALSE, scratch_pool)
: NULL;
- svn_dirent_split(&dir_abspath, &target, local_abspath, scratch_pool);
-
{
const char *wcroot_abspath;
@@ -451,6 +447,10 @@ switch_file_external(const char *local_a
svn_client__pathrev_t *switch_loc;
svn_revnum_t revnum;
apr_array_header_t *inherited_props;
+ const char *dir_abspath;
+ const char *target;
+
+ svn_dirent_split(&dir_abspath, &target, local_abspath, scratch_pool);
/* Open an RA session to 'source' URL */
SVN_ERR(svn_client__ra_session_from_path2(&ra_session, &switch_loc,