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

Re: "svn info" good return code on bad URL

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-10-10 18:47:15 CEST

On Mon, 2005-10-10 at 14:57 +0200, Peter N. Lundblad wrote:
> It can be made a fatal error instead of a warning. My point was that if it
> is not fatal and the client continues with the next target, we can't
> return failure because the next target might succeed.

That seems overly final. We could change our code to return exit status
1 if there was a warning, or perhaps if no targets succeeded.

Other programs have the same issue:

  egyptian-gods% ls -d foo blob
  ls: foo: No such file or directory
  blob
  egyptian-gods% echo $status
  1

  egyptian-gods% tar cvf foo.tar foo blob
  tar: foo: Cannot stat: No such file or directory
  blob/
  tar: Error exit delayed from previous errors
  egyptian-gods% echo $status
  2
  egyptian-gods% ls -l foo.tar
  -rw-r--r-- 1 ghudson mit 10240 Oct 10 12:46 foo.tar

We appear to be unusual in returning exit status 0 on a mix of success
and failure.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 10 18:48:47 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.