You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/08/12 21:42:43 UTC

svn commit: r984928 - in /subversion/trunk: ./ subversion/libsvn_client/export.c

Author: stefan2
Date: Thu Aug 12 19:42:43 2010
New Revision: 984928

URL: http://svn.apache.org/viewvc?rev=984928&view=rev
Log:
Merge r983766,r984927 from branches/performance. Approved by: danielsh
http://svn.haxx.se/dev/archive-2010-08/0219.shtml

Fix the root cause of an assertion triggered by exporting KDE /trunk:
Relative file paths need to be canonicalized when building URLs.

* subversion/libsvn_client/export.c
  (add_file): properly escape the file's URL

Modified:
    subversion/trunk/   (props changed)
    subversion/trunk/subversion/libsvn_client/export.c

Propchange: subversion/trunk/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Aug 12 19:42:43 2010
@@ -22,7 +22,7 @@
 /subversion/branches/log-g-performance:870941-871032
 /subversion/branches/merge-skips-obstructions:874525-874615
 /subversion/branches/nfc-nfd-aware-client:870276,870376
-/subversion/branches/performance:983764
+/subversion/branches/performance:983764,983766,984927
 /subversion/branches/ra_serf-digest-authn:875693-876404
 /subversion/branches/reintegrate-improvements:873853-874164
 /subversion/branches/subtree-mergeinfo:876734-878766

Modified: subversion/trunk/subversion/libsvn_client/export.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/export.c?rev=984928&r1=984927&r2=984928&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/export.c (original)
+++ subversion/trunk/subversion/libsvn_client/export.c Thu Aug 12 19:42:43 2010
@@ -713,7 +713,12 @@ add_file(const char *path,
   struct edit_baton *eb = pb->edit_baton;
   struct file_baton *fb = apr_pcalloc(pool, sizeof(*fb));
   const char *full_path = svn_dirent_join(eb->root_path, path, pool);
-  const char *full_url = svn_uri_join(eb->root_url, path, pool);
+
+  /* path is not canonicalized, i.e. it may still contain spaces etc.
+   * but eb->root_url is */
+  const char *full_url = svn_path_url_add_component2(eb->root_url,
+                                                     path,
+                                                     pool);
 
   fb->edit_baton = eb;
   fb->path = full_path;