You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by al...@muly.dk on 2005/02/17 13:02:03 UTC
auto detect directory existience
hello
out build script should handle some auto-tagging (and therevby auto-copying).
since we need to know if a parent direcoty already exists to get a unified
tagging mechanism i need to know how to check this.
the script will not nessecarily from the server
i have tried to call the "svn ls" and look in the output for "non-existent" but
currently that a bad option.
i even connsider running a http HEAD command to see if i get http-errorcod e404
back, but that just seems absurd
aren't there an easier way to check this ?
the script currently uses the svn commandline to talk to the repos.
thanks
./allan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: auto detect directory existience
Posted by allan juul <al...@muly.dk>.
Ben Collins-Sussman wrote:
>
> On Feb 17, 2005, at 7:02 AM, allan@muly.dk wrote:
>
>>
>> i have tried to call the "svn ls" and look in the output for
>> "non-existent" but
>> currently that a bad option.
>>
>
> Why is that a bad option?
>
> You want to check for the existence of a path in the repository. 'svn
> ls' is the command used to browse a repository. It seems like an exact
> functional match.
>
>
well, its not that bad (currently its my perl on win32 thats bad ;) )
hmm, come to think about it (and drifting to a new topic), i think i saw
a patch somewhere that one could pass -p or -P ? (for create/dont create
parent dir) switch for the svn copy command - wss that a dream ?
the only reason i need to check for the existence of a dir is that i
need to be sure that the parentdir is not created insoide itself so to
speak. so if i could run:
$ svn copy -p baseURL/parentdir/ baseTagURL/parentdir/
this should ensure that i *don't* end up with
baseTagURL/parentdir/parentdir/
./allan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: auto detect directory existience
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 17, 2005, at 7:02 AM, allan@muly.dk wrote:
>
> i have tried to call the "svn ls" and look in the output for
> "non-existent" but
> currently that a bad option.
>
Why is that a bad option?
You want to check for the existence of a path in the repository. 'svn
ls' is the command used to browse a repository. It seems like an exact
functional match.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org