subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1623974 - /subversion/trunk/subversion/libsvn_client/import.c
Date Wed, 10 Sep 2014 11:58:22 GMT
Author: stsp
Date: Wed Sep 10 11:58:22 2014
New Revision: 1623974

URL: http://svn.apache.org/r1623974
Log:
Fix a client API rule violation in 'svn import'.

* subversion/libsvn_client/import.c
  (svn_client_import5): A commit item's path is supposed to be absolute
   so set item->path to the already calculated absolute path.

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

Modified: subversion/trunk/subversion/libsvn_client/import.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/import.c?rev=1623974&r1=1623973&r2=1623974&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/import.c (original)
+++ subversion/trunk/subversion/libsvn_client/import.c Wed Sep 10 11:58:22 2014
@@ -844,7 +844,7 @@ svn_client_import5(const char *path,
         = apr_array_make(scratch_pool, 1, sizeof(item));
 
       item = svn_client_commit_item3_create(scratch_pool);
-      item->path = apr_pstrdup(scratch_pool, path);
+      item->path = local_abspath;
       item->state_flags = SVN_CLIENT_COMMIT_ITEM_ADD;
       APR_ARRAY_PUSH(commit_items, svn_client_commit_item3_t *) = item;
 



Mime
View raw message