subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1392877 - /subversion/trunk/subversion/libsvn_client/commit.c
Date Tue, 02 Oct 2012 12:09:36 GMT
Author: philip
Date: Tue Oct  2 12:09:36 2012
New Revision: 1392877

URL: http://svn.apache.org/viewvc?rev=1392877&view=rev
Log:
* subversion/libsvn_client/commit.c (svn_client_commit6): Minor simplification.

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

Modified: subversion/trunk/subversion/libsvn_client/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/commit.c?rev=1392877&r1=1392876&r2=1392877&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/commit.c (original)
+++ subversion/trunk/subversion/libsvn_client/commit.c Tue Oct  2 12:09:36 2012
@@ -1771,15 +1771,10 @@ svn_client_commit6(const apr_array_heade
   cb.info = &commit_info;
   cb.pool = pool;
 
-  /* When committing from multiple WCs, get the RA editor from
-   * the first WC, rather than the BASE_ABSPATH. The BASE_ABSPATH
-   * might be an unrelated parent of nested working copies.
-   * We don't support commits to multiple repositories so using
-   * the first WC to get the RA session is safe. */
-  if (lock_targets->nelts > 1)
-    ra_session_wc = APR_ARRAY_IDX(lock_targets, 0, const char *);
-  else
-    ra_session_wc = base_abspath;
+  /* Get the RA editor from the first WC.  We don't support commits to
+   * multiple repositories so using the first WC to get the RA session
+   * is safe. */
+  ra_session_wc = APR_ARRAY_IDX(lock_targets, 0, const char *);
 
   cmt_err = svn_error_trace(
               svn_client__open_ra_session_internal(&ra_session, NULL, base_url,



Mime
View raw message