Re: Update of missing on non-working directory

2010-05-28 Thread Ulrich Eckhardt
On Wednesday 12 May 2010, Andy Levy wrote: > On Wed, May 12, 2010 at 09:23, Vadym Chepkov wrote: > > I think the exit code subversion returns isn't right, it should indicate > > an error [...] > > $ svn update /etc > > Skipped '/etc' > > $ echo $? > > 0 > > Why? The command executed successfully a

Re: Update of missing on non-working directory

2010-05-13 Thread Vadym Chepkov
On May 13, 2010, at 5:43 AM, Campbell Allan wrote: > > On Wednesday 12 May 2010, Vadym Chepkov wrote: >> 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 inte

Re: Update of missing on non-working directory

2010-05-13 Thread Campbell Allan
On Wednesday 12 May 2010, Vadym Chepkov wrote: > 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

Re: Update of missing on non-working directory

2010-05-12 Thread Stein Somers
Why? The command executed successfully and reported what it did. "ls /blah-blah ." successfully lists the . directory, but still returns an error code because of the user error in its first argument. There may be a reason why svn chooses to almost ignore bad input but it's a surprise for sur

Re: Update of missing on non-working directory

2010-05-12 Thread Vadym Chepkov
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

Re: Update of missing on non-working directory

2010-05-12 Thread Andy Levy
On Wed, May 12, 2010 at 09:23, Vadym Chepkov 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 > Skippe

Update of missing on non-working directory

2010-05-12 Thread Vadym Chepkov
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 Vadym