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

Re: How to check for branche existence?

From: Damien Martin-Guillerez <dmartin_at_irisa.fr>
Date: 2007-08-21 16:26:06 CEST

Andy Levy wrote:
> On 8/21/07, Sébastien Filion <sfilion@finrad.com> wrote:
>
>>
>>
>> Hi,
>>
>>
>>
>> I want to automate all our process that create releases branches, switch the
>> externals and more and more…
>>
>>
>>
>> But I want to find the best way to check and verify for a branch existence
>> before creating it.
>>
>> This is because I want to be sure that the process didn't overwrite critical
>> branches.
>>
>
> svn info <url_to_branch>
>
> If it returns with info, then the branch exists. If it returns with
> Not a valid URL, then it doesn't.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
What I'm doing on my server is using svn list on the /branches
directory. Then you got the list of all branches.

Regards

-- 
Damien Martin-Guillerez
PhD Candidate - INRIA
IRISA - ACES Team - Office E301
Tel: (+33) 2 9984 7308
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 21 16:24:02 2007

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