You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert Spier <rs...@pobox.com> on 2003/07/31 23:07:12 UTC

svn switch brainos?

(Is this a bug or user or expectation error?)

I did some repository reorganization:

$ svn move http://svnhost/combust/backend/trunk/ \
           http://svnhost/combust/trunk/
  # 177
$ svn move http://svnhost/combust/backend/branches/ \
            http://svnhost/combust/branches/
  # 178
$ svn delete http://svnhost/combust/backend
  # 179

and then switched my WC over to it

$ svn switch --relocate http://svnhost/combust/backend/trunk \
                        http://svnhost/combust/trunk/ .

now, when I try and update my repository, 

rspier@bear ~/projects/newweb$ svn update
svn: Filesystem has no item
svn: REPORT request failed on '/combust/!svn/vcc/default'
svn: file not found: revision `165', path `/trunk/apache/conf/httpd.tmpl'

The error makes sense, because /trunk/apache/conf/httpd.tmpl doesn't
exist in rev 165 -- in rev 165 it existed in
/backend/trunk/apache/conf/httpd.tmpl 

But - now my WC can't update -- I guess I was hoping "the right thing"
would happen.

If I switch the WC "forward" to the latest pre-reorganization
revision, I can update.

$ svn switch -r 176 http://svnhost/combust/backend/trunk/ .
$ svn update

this seems to get me out of my misery.  Now to see if I can
communicate this to my users.  

$ svn switch --relocate http://svnhost/combust/trunk \
                        http://svnhost/combust/backend/trunk
$ svn switch -r 179 http://svnhost/combust/trunk

Having done one more test..

$ svn co -r 176 http://svnhost/combust/backend/trunk test
$ cd test
$ svn switch -r 178 http://svnhost/combust/trunk/
At revision 178.
$ svn update
At revision 179.

that seems to be the better way to do it.

-R

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

Re: svn switch brainos?

Posted by Robert Spier <rs...@pobox.com>.
> > $ svn switch --relocate http://svnhost/combust/backend/trunk \
> >                         http://svnhost/combust/trunk/ .
> 
> 
> Why on earth are you using the --relocate switch?  The point of that
> switch is for rewriting urls when you switch schemas or hostnames.

But.. it seemed to make sense at the time :)

Would you want a patch adding a error message if 
    oldschema == newschema and oldhost == newhost ?

(although that doesn't get the other case of changing from one
repository to another on the same host -- which is non-trivial to
figure out from only parsing the URL)

> But in your case, you don't need that at all.  A simple
>    svn switch http://svnhost/combust/trunk
> would have 'updated' your working copy to the new repository location
> with no problems at all.

Doh.

Thanks!

-R

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

Re: svn switch brainos?

Posted by Ben Collins-Sussman <su...@collab.net>.
Robert Spier <rs...@pobox.com> writes:

> (Is this a bug or user or expectation error?)
> 
> I did some repository reorganization:
> 
> $ svn move http://svnhost/combust/backend/trunk/ \
>            http://svnhost/combust/trunk/
>   # 177
> $ svn move http://svnhost/combust/backend/branches/ \
>             http://svnhost/combust/branches/
>   # 178
> $ svn delete http://svnhost/combust/backend
>   # 179
> 
> and then switched my WC over to it
> 
> $ svn switch --relocate http://svnhost/combust/backend/trunk \
>                         http://svnhost/combust/trunk/ .


Why on earth are you using the --relocate switch?  The point of that
switch is for rewriting urls when you switch schemas or hostnames.

But in your case, you don't need that at all.  A simple

   svn switch http://svnhost/combust/trunk

would have 'updated' your working copy to the new repository location
with no problems at all.



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