git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Equivalent of `svn switch` for git-svn?

From
Adam Roben <aroben@apple.com>
Date
Sep 27, 2007, 16:39 UTC
Message-ID
<46FBDCBF.7060909@apple.com>
In-Reply-To
<Pine.LNX.4.64.0709271253040.28395@racer.site>
Johannes Schindelin wrote:
Show 31 quoted lines
> Hi,
>
> On Thu, 27 Sep 2007, Pierre Habouzit wrote:
>
>   
>> On Thu, Sep 27, 2007 at 06:41:10AM +0000, Adam Roben wrote:
>>     
>>> 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.
>>>       
>>   edit your .git/config, in the section [svn-remote "svn"], change url =
>>     
>
> 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>
>   

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
Previous: Johannes SchindelinNext: Pierre Habouzit
Message 4 of 5 in “Equivalent of `svn switch` for git-svn?”
  1. Adam RobenSep 27, 2007
  2. Pierre HabouzitSep 27, 2007
  3. Johannes SchindelinSep 27, 2007
  4. Adam RobenSep 27, 2007
  5. Pierre HabouzitSep 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.