{"thread":{"id":"10042","subject":"Equivalent of `svn switch` for git-svn?","startedAt":"2007-09-27T06:41:10Z","lastAt":"2007-09-27T17:02:05Z","messageCount":5,"participants":["Adam Roben","Pierre Habouzit","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"54141","messageId":"46FB5086.7070408@apple.com","threadId":"10042","inReplyTo":null,"subject":"Equivalent of `svn switch` for git-svn?","fromName":"Adam Roben","fromEmail":"aroben@apple.com","sentAt":"2007-09-27T06:41:10Z","receivedAt":"2007-09-27T06:41:10Z","isPatch":false,"sender":{"key":"aroben@apple.com","avatar":"https://gravatar.com/avatar/9d3697e1de53890adf241331f4b970bdd2b18962b2ff0b8028ebb00e085807f8?d=mp&s=160"},"body":"Hi all-\n   I've recently been informed that the Subversion server I and several \nothers have been tracking with git-svn will be switching from using the \nsvn+ssh scheme to the http scheme. To handle this, users of svn will be \nrunning `svn switch` to move their working copies to the new repository \nURL. Is there some way to do the same for git-svn? I suspect the biggest \ncomplication will come from the git-svn-id: lines in the commit logs, \nsince changing that line would require changing the commit hash as well.\n\n   Thanks for any advice!\n\n-Adam\n"},{"id":"54149","messageId":"20070927100607.GC10289@artemis.corp","threadId":"10042","inReplyTo":"46FB5086.7070408@apple.com","subject":"Re: Equivalent of `svn switch` for git-svn?","fromName":"Pierre Habouzit","fromEmail":"madcoder@debian.org","sentAt":"2007-09-27T10:06:07Z","receivedAt":"2007-09-27T10:06:07Z","isPatch":false,"sender":{"key":"madcoder@debian.org","avatar":"https://avatars.githubusercontent.com/u/44708?v=4"},"body":"On Thu, Sep 27, 2007 at 06:41:10AM +0000, Adam Roben wrote:\n> Hi all-\n>   I've recently been informed that the Subversion server I and several \n> others have been tracking with git-svn will be switching from using the \n> svn+ssh scheme to the http scheme. To handle this, users of svn will be \n> running `svn switch` to move their working copies to the new repository \n> URL. Is there some way to do the same for git-svn? I suspect the biggest \n> complication will come from the git-svn-id: lines in the commit logs, \n> since changing that line would require changing the commit hash as well.\n\n  edit your .git/config, in the section [svn-remote \"svn\"], change url =\n\n-- \n·O·  Pierre Habouzit\n··O                                                madcoder@debian.org\nOOO                                                http://www.madism.org\n"},{"id":"54161","messageId":"Pine.LNX.4.64.0709271253040.28395@racer.site","threadId":"10042","inReplyTo":"20070927100607.GC10289@artemis.corp","subject":"Re: Equivalent of `svn switch` for git-svn?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-09-27T11:54:18Z","receivedAt":"2007-09-27T11:54:18Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 27 Sep 2007, Pierre Habouzit wrote:\n\n> On Thu, Sep 27, 2007 at 06:41:10AM +0000, Adam Roben wrote:\n> > Hi all-\n> >   I've recently been informed that the Subversion server I and several \n> > others have been tracking with git-svn will be switching from using the \n> > svn+ssh scheme to the http scheme. To handle this, users of svn will be \n> > running `svn switch` to move their working copies to the new repository \n> > URL. Is there some way to do the same for git-svn? I suspect the biggest \n> > complication will come from the git-svn-id: lines in the commit logs, \n> > since changing that line would require changing the commit hash as well.\n> \n>   edit your .git/config, in the section [svn-remote \"svn\"], change url =\n\nOr use git-config:\n\n\tgit config svn-remote.svn.url <url>\n\nOr make it a global alias:\n\n\tgit config --global alias svn-switch 'config svn-remote.svn.url'\n\nso that you can say\n\n\tgit svn-switch <url>\n\nCiao,\nDscho\n"},{"id":"54173","messageId":"46FBDCBF.7060909@apple.com","threadId":"10042","inReplyTo":"Pine.LNX.4.64.0709271253040.28395@racer.site","subject":"Re: Equivalent of `svn switch` for git-svn?","fromName":"Adam Roben","fromEmail":"aroben@apple.com","sentAt":"2007-09-27T16:39:27Z","receivedAt":"2007-09-27T16:39:27Z","isPatch":false,"sender":{"key":"aroben@apple.com","avatar":"https://gravatar.com/avatar/9d3697e1de53890adf241331f4b970bdd2b18962b2ff0b8028ebb00e085807f8?d=mp&s=160"},"body":"\nJohannes Schindelin wrote:\n> Hi,\n>\n> On Thu, 27 Sep 2007, Pierre Habouzit wrote:\n>\n>   \n>> On Thu, Sep 27, 2007 at 06:41:10AM +0000, Adam Roben wrote:\n>>     \n>>> Hi all-\n>>>   I've recently been informed that the Subversion server I and several \n>>> others have been tracking with git-svn will be switching from using the \n>>> svn+ssh scheme to the http scheme. To handle this, users of svn will be \n>>> running `svn switch` to move their working copies to the new repository \n>>> URL. Is there some way to do the same for git-svn? I suspect the biggest \n>>> complication will come from the git-svn-id: lines in the commit logs, \n>>> since changing that line would require changing the commit hash as well.\n>>>       \n>>   edit your .git/config, in the section [svn-remote \"svn\"], change url =\n>>     \n>\n> Or use git-config:\n>\n> \tgit config svn-remote.svn.url <url>\n>\n> Or make it a global alias:\n>\n> \tgit config --global alias svn-switch 'config svn-remote.svn.url'\n>\n> so that you can say\n>\n> \tgit svn-switch <url>\n>   \nWill doing this then change all the git-svn-id: lines in the commit logs \nfor those imported revisions? I'm asking because my understanding is \nthat git-svn uses those git-svn-id: lines to determine which branch \nyou're on, and if the URLs are now all out of date won't it then think \nit can't determine the correct branch?\n\nThanks for the suggestions so far.\n\n-Adam\n"},{"id":"54174","messageId":"20070927170205.GA6076@artemis.corp","threadId":"10042","inReplyTo":"46FBDCBF.7060909@apple.com","subject":"Re: Equivalent of `svn switch` for git-svn?","fromName":"Pierre Habouzit","fromEmail":"madcoder@debian.org","sentAt":"2007-09-27T17:02:05Z","receivedAt":"2007-09-27T17:02:05Z","isPatch":false,"sender":{"key":"madcoder@debian.org","avatar":"https://avatars.githubusercontent.com/u/44708?v=4"},"body":"On Thu, Sep 27, 2007 at 04:39:27PM +0000, Adam Roben wrote:\n> Will doing this then change all the git-svn-id: lines in the commit logs \n> for those imported revisions? I'm asking because my understanding is that \n> git-svn uses those git-svn-id: lines to determine which branch you're on, \n> and if the URLs are now all out of date won't it then think it can't \n> determine the correct branch?\n\n  fwiw If it breaks git-svn, then it's a deep git-svn misconception.\nI've always believed that git-svn should always have done what git\ncheckout --track do, meaning set into the configuration which svn remote\nbranch you are following.\n\n-- \n·O·  Pierre Habouzit\n··O                                                madcoder@debian.org\nOOO                                                http://www.madism.org\n"}]}