[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] svncopy.pl fails with spaces in file paths.

From: Martin Tomes <lists_at_tomes.org>
Date: 2005-07-19 17:52:41 CEST

[[[
svncopy.pl fails to change the svn:externals property when there is a
space in the file path.

    * contrib/client-side/svncopy.pl.in
    (UpdateExternalsOnDir) Quote file path parameters to call of SVNCall.
]]]

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
The Subversion Wiki is at http://www.subversionary.org/

Index: svncopy.pl.in
===================================================================
--- svncopy.pl.in (revision 15362)
+++ svncopy.pl.in (working copy)
@@ -502,7 +502,8 @@
       my ($handle, $tmpfile) = tempfile( DIR => $temp_dir );
       print $handle join( "\n", @new_externals );
       close($handle);
- SVNCall( "propset", "--file", $tmpfile, "svn:externals", $work_dir );
+ SVNCall( "propset", "--file", '"' . $tmpfile . '"', "svn:externals",
+ '"' . $work_dir . '"' );
     }
 }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 19 17:53:28 2005

This is an archived mail posted to the Subversion Dev mailing list.