git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Equivalent of `svn switch` for git-svn?
@ 2007-09-27  6:41 Adam Roben
  2007-09-27 10:06 ` Pierre Habouzit
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Roben @ 2007-09-27  6:41 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Equivalent of `svn switch` for git-svn?
  2007-09-27  6:41 Equivalent of `svn switch` for git-svn? Adam Roben
@ 2007-09-27 10:06 ` Pierre Habouzit
  2007-09-27 11:54   ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Habouzit @ 2007-09-27 10:06 UTC (permalink / raw)
  To: Adam Roben; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

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 =

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Equivalent of `svn switch` for git-svn?
  2007-09-27 10:06 ` Pierre Habouzit
@ 2007-09-27 11:54   ` Johannes Schindelin
  2007-09-27 16:39     ` Adam Roben
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2007-09-27 11:54 UTC (permalink / raw)
  To: Pierre Habouzit; +Cc: Adam Roben, git

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>

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Equivalent of `svn switch` for git-svn?
  2007-09-27 11:54   ` Johannes Schindelin
@ 2007-09-27 16:39     ` Adam Roben
  2007-09-27 17:02       ` Pierre Habouzit
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Roben @ 2007-09-27 16:39 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Pierre Habouzit, git


Johannes Schindelin wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Equivalent of `svn switch` for git-svn?
  2007-09-27 16:39     ` Adam Roben
@ 2007-09-27 17:02       ` Pierre Habouzit
  0 siblings, 0 replies; 5+ messages in thread
From: Pierre Habouzit @ 2007-09-27 17:02 UTC (permalink / raw)
  To: Adam Roben; +Cc: Johannes Schindelin, git

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

On Thu, Sep 27, 2007 at 04:39:27PM +0000, Adam Roben wrote:
> 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?

  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.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-27 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-27  6:41 Equivalent of `svn switch` for git-svn? Adam Roben
2007-09-27 10:06 ` Pierre Habouzit
2007-09-27 11:54   ` Johannes Schindelin
2007-09-27 16:39     ` Adam Roben
2007-09-27 17:02       ` Pierre Habouzit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).