You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Paramjit Oberoi <p_...@hotmail.com> on 2003/07/19 05:04:56 UTC

Handling failures

I just started using svn regularly, and I really like it so far.

Two issues that I encountered:

* If a checkout fails (for instance, because of an incorrectly specified 
path),
  no new files/directories should be created.  For instance, if I do:

    svn co file:///svn-repository/my-cool-projcet/module1

  (and the repository does not contain "my-cool-projcet") an empty directory
  called "module1" is created with a .svn subdirectory.  So I cannot simply
  reissue the checkout command with the corrected spelling---I must first
  delete the bogus directory, otherwise subversion complains that the
  "module1" directory is already a working copy for a different path.

* Accessing a remote repository via ra_svn should check if the same
  subversion version is installed on both ends; otherwise the repository
  can sometimes end up in an unusable state. I had this problem a few times
  before I realized what I was doing wrong. (I know ra_svn is supported only 
if
  the same version of subversion is installed on both ends, but, this should 
be
  explicitly checked.  It is somewhat scary to not be able to access the 
repository
  after doing a remote commit which seemed to succeed without problems).

  For similar reasons, any tool accessing the repository should check a 
version
  number and refuse to work if the repository format is too old (I had 
instances
  of "svn list" terminating with "bus error" when I tried to access a really 
old
  repository.

I realize these are not even beta releases... but, given that data integrity 
is one of
the central requirements, version number checking is really important.

-param

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Handling failures

Posted by Ben Collins-Sussman <su...@collab.net>.
"Paramjit Oberoi" <p_...@hotmail.com> writes:

> * If a checkout fails (for instance, because of an incorrectly
> specified path),
>   no new files/directories should be created.  For instance, if I do:
> 
>     svn co file:///svn-repository/my-cool-projcet/module1
> 
>   (and the repository does not contain "my-cool-projcet") an empty directory
>   called "module1" is created with a .svn subdirectory.  So I cannot simply
>   reissue the checkout command with the corrected spelling---I must first
>   delete the bogus directory, otherwise subversion complains that the
>   "module1" directory is already a working copy for a different path.

This is fixed in HEAD.


> * Accessing a remote repository via ra_svn should check if the same
>   subversion version is installed on both ends;

While svn is in alpha, we have a release-interoperability policy (and
FAQ).  

But in general, I agree: I wish that both of our network layers were
able to *either* negotiate svn release number or protocol version.
It's been discussed on this list, but nothing concrete has come out of
it.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org