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

build script - pre-check for path existence

From: allan juul <lambretta_at_inet.uni2.dk>
Date: 2005-01-07 23:41:26 CET

hi

in our build script we need to create paths on the server that sometimes
does exist already and sometimes does not.

currently our script will do a 'svn mkdir' for each directory at the time

code ex
##############
my @intermediate = split ( /\//, "/path/to/unknown/place" );

my $tmp_str = "";
foreach my $dir ( @intermediate ) {
   $tmp_str .= "$dir/";

   `svn mkdir $repository_url/$tmp_str -m \"Adding dir\""`;
}

#############

it's ugly but in fact, that always works - but it also gets annoying
when the path already exist, because then we get warning messages like:

svn: MKCOL of /svn/!svn/wrk/879aa23b-1ded-0310-acf7-e64a4ce5e0b7/ ...
405 Method Not Allowed (http://example.com

is there a way to check/preview the repository from a client's perspective ?

./allan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 7 23:43:37 2005

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