Equivalent of `svn switch` for git-svn?

Previous thread: Use of strbuf.buf when strbuf.len == 0 by Junio C Hamano on Thursday, September 27, 2007 - 2:21 am. (10 messages)

Next thread: Re: [PATCH] Create .dotest-merge after validating options. by Junio C Hamano on Thursday, September 27, 2007 - 3:29 am. (2 messages)
To: <git@...>
Date: Thursday, September 27, 2007 - 2:41 am

Hi all-
I've recently been informed that the Subversion server I and several
others have been tracking with git-svn will be switching from using the
svn+ssh scheme to the http scheme. To handle this, users of svn will be
running `svn switch` to move their working copies to the new repository
URL. Is there some way to do the same for git-svn? I suspect the biggest
complication will come from the git-svn-id: lines in the commit logs,
since changing that line would require changing the commit hash as well.

Thanks for any advice!

-Adam

-

To: Adam Roben <aroben@...>
Cc: <git@...>
Date: Thursday, September 27, 2007 - 6:06 am

edit your .git/config, in the section [svn-remote "svn"], change url =3D

--=20
=C2=B7O=C2=B7 Pierre Habouzit
=C2=B7=C2=B7O madcoder@debia=
n.org
OOO http://www.madism.org

To: Pierre Habouzit <madcoder@...>
Cc: Adam Roben <aroben@...>, <git@...>
Date: Thursday, September 27, 2007 - 7:54 am

Hi,

Or use git-config:

git config svn-remote.svn.url <url>

Or make it a global alias:

git config --global alias svn-switch 'config svn-remote.svn.url'

so that you can say

git svn-switch <url>

Ciao,
Dscho

-

To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Pierre Habouzit <madcoder@...>, <git@...>
Date: Thursday, September 27, 2007 - 12:39 pm

Will doing this then change all the git-svn-id: lines in the commit logs
for those imported revisions? I'm asking because my understanding is
that git-svn uses those git-svn-id: lines to determine which branch
you're on, and if the URLs are now all out of date won't it then think
it can't determine the correct branch?

Thanks for the suggestions so far.

-Adam
-

To: Adam Roben <aroben@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <git@...>
Date: Thursday, September 27, 2007 - 1:02 pm

fwiw If it breaks git-svn, then it's a deep git-svn misconception.
I've always believed that git-svn should always have done what git
checkout --track do, meaning set into the configuration which svn remote
branch you are following.

--=20
=C2=B7O=C2=B7 Pierre Habouzit
=C2=B7=C2=B7O madcoder@debia=
n.org
OOO http://www.madism.org

Previous thread: Use of strbuf.buf when strbuf.len == 0 by Junio C Hamano on Thursday, September 27, 2007 - 2:21 am. (10 messages)

Next thread: Re: [PATCH] Create .dotest-merge after validating options. by Junio C Hamano on Thursday, September 27, 2007 - 3:29 am. (2 messages)