You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by allan juul <la...@inet.uni2.dk> on 2005/01/07 22:41:26 UTC

build script - pre-check for path existence

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

Re: build script - pre-check for path existence

Posted by Ben Collins-Sussman <su...@collab.net>.
On Jan 7, 2005, at 4:41 PM, allan juul wrote:
>
>
> is there a way to check/preview the repository from a client's 
> perspective ?
>
>

svn ls [-v] URL


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org