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

Re: Update of missing on non-working directory

From: Vadym Chepkov <vchepkov_at_gmail.com>
Date: Wed, 12 May 2010 09:42:16 -0400

Consider this:

$ svn -q --non-interactive update /blah-blah
$ echo $?
0

No output even to stderr, no indication of a failure at all.
Subversion doesn't always used interactively, hence --non-interactive switch.
If you made a mistake in a script it will be unnoticed (well, this was my unpleasant surprise)

Vadym

On May 12, 2010, at 9:28 AM, Andy Levy wrote:

> On Wed, May 12, 2010 at 09:23, Vadym Chepkov <vchepkov_at_gmail.com> wrote:
>> Hi,
>>
>> I think the exit code subversion returns isn't right, it should indicate an error
>>
>> $ svn --version
>> svn, version 1.6.11 (r934486)
>>
>>
>> $ svn update /blah-blah
>> Skipped '/blah-blah'
>> $ echo $?
>> 0
>>
>> $ svn update /etc
>> Skipped '/etc'
>> $ echo $?
>> 0
>
> Why? The command executed successfully and reported what it did.
> Skipping something which is not a working copy isn't a program error;
> attempting to update a something which is not a WC is a user error.
Received on 2010-05-12 15:42:54 CEST

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.