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

Re: create a tag folder quietly

From: David Weintraub <qazwart_at_gmail.com>
Date: Sun, 4 Jan 2009 19:43:56 -0500

Quiet mode doesn't suppress error messages. Use the 2> /dev/null on
Unix/Linux or 2> NUL on Windows. I would also use "ls" instead of
"mkdir" to test for a directory unless you really want to create that
directory. You'll also need a -m parameter to give a message incase
the command succeeds when you use "mkdir".

if svn ls --depth=empty $URL 2> /dev/null
then
    echo "Directory $URL exists"
else
    echo "Directory $URL doesn't exist"
fi

Or simply redirect both STDOUT and STDERR

if svn ls $URL > /dev/null 2>&1
then
   echo "Directory $URL exists"
else
   echo "Directory $URL doesn't exist"
fi

On Sun, Jan 4, 2009 at 9:47 AM, Ilan Yaniv <Ilan.Yaniv_at_timetoknow.org> wrote:
> Hi All,
>
> I am trying to create a tag folder quietly.
>
> First I need to check that main path exist so I make: svn mkdir URL –q
> --parent
>
> But then it appears that the path exist so I get the following error: svn:
> Server sent unexpected return value (405 Method Not Allowed) in response to
> …
>
> I want this error to be ignored (quiet mode). How do I set this?
>
> Ilan Yaniv
>
> Configuration Management
>
> Phone: 03-7534333 ext. 5873
>
> Ilan.Yaniv_at_timetoknow.org

-- 
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1003941
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-05 01:44:53 CET

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.