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

Windows fix for svncopy.pl

From: John Doisneau <jdoisneau_at_gmail.com>
Date: 2005-08-24 11:02:03 CEST

Don't really know what to do with this other than posting it here...

sub SVNCall
{
  my ( $command, @options ) = @_;

  # this block was added for the script to work fine with windows temporary
  # directory pathes which include space characters
  my $i=0; for(@options)
  {
    if(($options[$i] !~ /^".*"$/) && ($options[$i] =~ /[a-z]:.*\b/i))
    {
      $options[$i] = '"'.$_.'"';
    }
    $i++;
  }

  my @commandline = ( $svn, $command, @options );

  ....

}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 24 11:03:54 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.