You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Giovanni Bajo <ra...@develer.com> on 2006/02/05 10:08:29 UTC
"svn info INVALID_URL": exit code zero?
Hello,
I found what I believe to be a bug:
$ svn info http://www.google.com/svn/trunk; echo $?
svn: PROPFIND request failed on '/svn/trunk'
svn: PROPFIND of '/svn/trunk': 400 Bad Request (http://www.google.com)
1
$ svn info http://svn.collab.net/repos/svn/trunk/FOOBAR; echo $?
http://svn.collab.net/repos/svn/trunk/FOOBAR: (Not a valid URL)
0
Shouldn't also the second command report 1 as exit code? May I open a ticket
for this?
Thanks
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "svn info INVALID_URL": exit code zero?
Posted by Giovanni Bajo <ra...@develer.com>.
Lieven Govaerts <lg...@mobsol.be> wrote:
> maybe you can check the issue tracker first, that issue was already
> reported:
> http://subversion.tigris.org/issues/show_bug.cgi?id=2414
Ah thanks. I would like to add that this breaks automated tools parsing the
command line client (like contrib/client-side/svnmerge.py): of course, such a
tool would either *expect* a success code and information printed on the
standard output, *or* an error code and some kind of error message. Giving an
error message with a success code is a recipe for mistakes.
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "svn info INVALID_URL": exit code zero?
Posted by Lieven Govaerts <lg...@mobsol.be>.
Hi Giovanni,
maybe you can check the issue tracker first, that issue was already
reported:
http://subversion.tigris.org/issues/show_bug.cgi?id=2414
regards,
Lieven.
On Sun, 2006-02-05 at 11:08 +0100, Giovanni Bajo wrote:
> Hello,
>
> I found what I believe to be a bug:
>
> $ svn info http://www.google.com/svn/trunk; echo $?
> svn: PROPFIND request failed on '/svn/trunk'
> svn: PROPFIND of '/svn/trunk': 400 Bad Request (http://www.google.com)
> 1
>
> $ svn info http://svn.collab.net/repos/svn/trunk/FOOBAR; echo $?
> http://svn.collab.net/repos/svn/trunk/FOOBAR: (Not a valid URL)
>
> 0
>
>
> Shouldn't also the second command report 1 as exit code? May I open a ticket
> for this?
>
> Thanks
> Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org