You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Richard Stephens <ri...@lexisnexis.com> on 2009/04/20 13:08:28 UTC

export command not reporting any problem with nonexistent url?

I am using SVN 1.4.2 on a Linux system.   I have a script that is
attempting to check the return code from an svn export command like the
following:

 

svn --username username  --password password export
https://this.is.the.svn.url/project_name/tags/dev/nonexistent_tag
../project_name

 

In this case, I _know_ that the tag directory I have named DOES NOT
EXIST in the repository, yet the "svn export" command not only returns 0
as the return code, it also does not even report that the directory
doesn't exist.  I just get the output "Export complete.", and a 0 for
exit code, as though the command completed successfully.

 

When I first started testing my export script against this same
repository, it would report the nonexistent directory and return a
nonzero exit code.  Now it doesn't.  Is this a bug?  A problem with my
repository?   Or is is some kind of setting change made on the SVN
server that could have caused this?

 

Thanks,

Rich Stephens

Sum Global Technologies





 

 




-----------------------------------------
The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1824653

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: export command not reporting any problem with nonexistent url?

Posted by Andy Levy <an...@gmail.com>.
On Mon, Apr 20, 2009 at 09:08, Richard Stephens
<ri...@lexisnexis.com> wrote:
> I am using SVN 1.4.2 on a Linux system.   I have a script that is attempting
> to check the return code from an svn export command like the following:
>
>
>
> svn --username username  --password password export
> https://this.is.the.svn.url/project_name/tags/dev/nonexistent_tag
>  ./project_name
>
>
>
> In this case, I _know_ that the tag directory I have named DOES NOT EXIST in
> the repository, yet the “svn export” command not only returns 0 as the
> return code, it also does not even report that the directory doesn’t exist.
> I just get the output “Export complete.”, and a 0 for exit code, as though
> the command completed successfully.
>
>
>
> When I first started testing my export script against this same repository,
> it would report the nonexistent directory and return a nonzero exit code.
> Now it doesn’t.  Is this a bug?  A problem with my repository?   Or is is
> some kind of setting change made on the SVN server that could have caused
> this?

You'll need to test with a more recent version of Subversion. 1.4.x is
no longer supported, so even if it is a bug, a fix against 1.4.2 won't
be published.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1824883

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: export command not reporting any problem with nonexistent url?

Posted by Richard Stephens <ri...@lexisnexis.com>.
Thanks for the heads-up.  I have tried it with the 1.56 client (our
server is v1.5.0) and it seems to be working correctly with that client
version.

Thanks,
Rich S.

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2009a@ryandesign.com] 
Sent: Tuesday, April 21, 2009 8:08 AM
To: Richard Stephens
Cc: users@subversion.tigris.org
Subject: Re: export command not reporting any problem with nonexistent
url?


On Apr 20, 2009, at 08:08, Richard Stephens wrote:

> I am using SVN 1.4.2 on a Linux system.   I have a script that is  
> attempting to check the return code from an svn export command like  
> the following:
>
> svn --username username  --password password export https:// 
> this.is.the.svn.url/project_name/tags/dev/nonexistent_tag  ./ 
> project_name
>
> In this case, I _know_ that the tag directory I have named DOES NOT  
> EXIST in the repository, yet the "svn export" command not only  
> returns 0 as the return code, it also does not even report that the  
> directory doesn't exist.  I just get the output "Export complete.",  
> and a 0 for exit code, as though the command completed successfully.
>
> When I first started testing my export script against this same  
> repository, it would report the nonexistent directory and return a  
> nonzero exit code.  Now it doesn't.  Is this a bug?  A problem with  
> my repository?   Or is is some kind of setting change made on the  
> SVN server that could have caused this?

You should upgrade your Subversion. I am unable to reproduce this  
problem with svn 1.6.1 on Mac OS X:

$ svn export http://svn.collab.net/repos/svn/nonexist
svn: URL 'http://svn.collab.net/repos/svn/nonexist' doesn't exist
$




-----------------------------------------
The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842507

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: export command not reporting any problem with nonexistent url?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 20, 2009, at 08:08, Richard Stephens wrote:

> I am using SVN 1.4.2 on a Linux system.   I have a script that is  
> attempting to check the return code from an svn export command like  
> the following:
>
> svn --username username  --password password export https:// 
> this.is.the.svn.url/project_name/tags/dev/nonexistent_tag  ./ 
> project_name
>
> In this case, I _know_ that the tag directory I have named DOES NOT  
> EXIST in the repository, yet the “svn export” command not only  
> returns 0 as the return code, it also does not even report that the  
> directory doesn’t exist.  I just get the output “Export complete.”,  
> and a 0 for exit code, as though the command completed successfully.
>
> When I first started testing my export script against this same  
> repository, it would report the nonexistent directory and return a  
> nonzero exit code.  Now it doesn’t.  Is this a bug?  A problem with  
> my repository?   Or is is some kind of setting change made on the  
> SVN server that could have caused this?

You should upgrade your Subversion. I am unable to reproduce this  
problem with svn 1.6.1 on Mac OS X:

$ svn export http://svn.collab.net/repos/svn/nonexist
svn: URL 'http://svn.collab.net/repos/svn/nonexist' doesn't exist
$

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842424

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].