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

Re: auto detect directory existience

From: allan juul <allan_at_muly.dk>
Date: 2005-02-17 20:42:15 CET

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



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 17 20:44:28 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.