{"thread":{"id":"8946","subject":"\"svn switch\" equivalent when using git-svn -- git-filter-branch?","startedAt":"2007-07-09T12:36:25Z","lastAt":"2007-07-10T09:38:56Z","messageCount":5,"participants":["David Kastrup","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"46859","messageId":"86sl7x7nzq.fsf@lola.quinscape.zz","threadId":"8946","inReplyTo":null,"subject":"\"svn switch\" equivalent when using git-svn -- git-filter-branch?","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-07-09T12:36:25Z","receivedAt":"2007-07-09T12:36:25Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"\nHi,\n\nan upstream svn repository that I access with git-svn has moved.  I\nseem to be too stupid to use git-filter-branch and/or .git/config\nand/or git-reset to make my git mirror follow the switch.\n\nAny pointers?\n\n-- \nDavid Kastrup\n"},{"id":"46917","messageId":"20070710054038.GA17675@muzzle","threadId":"8946","inReplyTo":"86sl7x7nzq.fsf@lola.quinscape.zz","subject":"Re: \"svn switch\" equivalent when using git-svn -- git-filter-branch?","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-07-10T05:40:38Z","receivedAt":"2007-07-10T05:40:38Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"David Kastrup <dak@gnu.org> wrote:\n> Hi,\n> \n> an upstream svn repository that I access with git-svn has moved.  I\n> seem to be too stupid to use git-filter-branch and/or .git/config\n> and/or git-reset to make my git mirror follow the switch.\n\nJust changing the url key in the [svn-remote] section of the .git/config\nfile should be enough.\n\nYou'll probably need to fetch at least one revision from the new URL\nbefore being able to dcommit, though.\n\nI've never looked at git-filter-branch, either.\n\n-- \nEric Wong\n"},{"id":"46926","messageId":"86ejjgzmxl.fsf@lola.quinscape.zz","threadId":"8946","inReplyTo":"20070710054038.GA17675@muzzle","subject":"Re: \"svn switch\" equivalent when using git-svn -- git-filter-branch?","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-07-10T08:24:06Z","receivedAt":"2007-07-10T08:24:06Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Eric Wong <normalperson@yhbt.net> writes:\n\n> David Kastrup <dak@gnu.org> wrote:\n>> Hi,\n>> \n>> an upstream svn repository that I access with git-svn has moved.  I\n>> seem to be too stupid to use git-filter-branch and/or .git/config\n>> and/or git-reset to make my git mirror follow the switch.\n>\n> Just changing the url key in the [svn-remote] section of the .git/config\n> file should be enough.\n>\n> You'll probably need to fetch at least one revision from the new URL\n> before being able to dcommit, though.\n\ngit-fetch works, but git-rebase -l still complains:\n\ngit-svn rebase -l\nUnable to determine upstream SVN information from working tree history\n\nAnd consequently I can't actually update.\n\n-- \nDavid Kastrup\n"},{"id":"46928","messageId":"20070710090003.GA18850@muzzle","threadId":"8946","inReplyTo":"86ejjgzmxl.fsf@lola.quinscape.zz","subject":"Re: \"svn switch\" equivalent when using git-svn -- git-filter-branch?","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-07-10T09:00:03Z","receivedAt":"2007-07-10T09:00:03Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"David Kastrup <dak@gnu.org> wrote:\n> Eric Wong <normalperson@yhbt.net> writes:\n> \n> > David Kastrup <dak@gnu.org> wrote:\n> >> Hi,\n> >> \n> >> an upstream svn repository that I access with git-svn has moved.  I\n> >> seem to be too stupid to use git-filter-branch and/or .git/config\n> >> and/or git-reset to make my git mirror follow the switch.\n> >\n> > Just changing the url key in the [svn-remote] section of the .git/config\n> > file should be enough.\n> >\n> > You'll probably need to fetch at least one revision from the new URL\n> > before being able to dcommit, though.\n> \n> git-fetch works, but git-rebase -l still complains:\n> \n> git-svn rebase -l\n> Unable to determine upstream SVN information from working tree history\n> \n> And consequently I can't actually update.\n\nDoes manually specifying the remote name work?\n\nTry bypassing the auto-detection of \"git-svn rebase\" and just using\n\"git rebase <remote name>\"\n\n-- \nEric Wong\n"},{"id":"46929","messageId":"86hcocwqbz.fsf@lola.quinscape.zz","threadId":"8946","inReplyTo":"20070710090003.GA18850@muzzle","subject":"Re: \"svn switch\" equivalent when using git-svn -- git-filter-branch?","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-07-10T09:38:56Z","receivedAt":"2007-07-10T09:38:56Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Eric Wong <normalperson@yhbt.net> writes:\n\n> David Kastrup <dak@gnu.org> wrote:\n>> Eric Wong <normalperson@yhbt.net> writes:\n>> \n>> > David Kastrup <dak@gnu.org> wrote:\n>> >> Hi,\n>> >> \n>> >> an upstream svn repository that I access with git-svn has moved.  I\n>> >> seem to be too stupid to use git-filter-branch and/or .git/config\n>> >> and/or git-reset to make my git mirror follow the switch.\n>> >\n>> > Just changing the url key in the [svn-remote] section of the .git/config\n>> > file should be enough.\n>> >\n>> > You'll probably need to fetch at least one revision from the new URL\n>> > before being able to dcommit, though.\n>> \n>> git-fetch works, but git-rebase -l still complains:\n>> \n>> git-svn rebase -l\n>> Unable to determine upstream SVN information from working tree history\n>> \n>> And consequently I can't actually update.\n>\n> Does manually specifying the remote name work?\n>\n> Try bypassing the auto-detection of \"git-svn rebase\" and just using\n> \"git rebase <remote name>\"\n\nWell, a combination of changing the config, doing a fetch, changing\nthe config back again, doing the rebase, and changing the config again\nseems to have done the trick for now.\n\nI'll have to see how this works in future.  Maybe I will have to\nrefetch everything anyhow as upstream has just decided to create a\ntrunk directory (and presumably tags and branches will follow).  I am\nnot sure I am up to performing the correct steps for adapting to this.\n\n-- \nDavid Kastrup\n"}]}