{"thread":{"id":"35232","subject":"git svn already set … wanted to set to:","startedAt":"2013-10-29T06:57:55Z","lastAt":"2013-11-01T06:12:40Z","messageCount":5,"participants":["DimanNe","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"229701","messageId":"1771383029875@web26g.yandex.ru","threadId":"35232","inReplyTo":null,"subject":"git svn already set … wanted to set to:","fromName":"DimanNe","fromEmail":"dimanne@ya.ru","sentAt":"2013-10-29T06:57:55Z","receivedAt":"2013-10-29T06:57:55Z","isPatch":false,"sender":{"key":"dimanne@ya.ru","avatar":null},"body":"I am trying to clone/fetch svn branch with git-svn:\n\ngit config --add svn-remote.stable-2012-03-29.url https://some_host/branch\ngit config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29\ngit svn fetch stable-2012-03-29\n\nwhich gives me this error message:\n\nsvn-remote.stable-2012-03-29.url already set: https://some_host/branch/ wanted to set to: https://some_host/\n\nI know that I probably can fix this by re-fetching all svn-repo from scratch, but it will take months or even years (due to size of repo).\n\nSo, is there any solutions?\n"},{"id":"229710","messageId":"87iowgiloj.fsf@linux-k42r.v.cablecom.net","threadId":"35232","inReplyTo":"1771383029875@web26g.yandex.ru","subject":"Re: git svn already set … wanted to set to:","fromName":"Thomas Rast","fromEmail":"tr@thomasrast.ch","sentAt":"2013-10-29T07:24:44Z","receivedAt":"2013-10-29T07:24:44Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"DimanNe <dimanne@ya.ru> writes:\n\n> I am trying to clone/fetch svn branch with git-svn:\n>\n> git config --add svn-remote.stable-2012-03-29.url https://some_host/branch\n> git config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29\n> git svn fetch stable-2012-03-29\n>\n> which gives me this error message:\n>\n> svn-remote.stable-2012-03-29.url already set:\n> https://some_host/branch/ wanted to set to: https://some_host/\n>\n> I know that I probably can fix this by re-fetching all svn-repo from\n> scratch, but it will take months or even years (due to size of repo).\n\nWhat does your config look like now?\n\nYou should have only one svn-remote with one url, but it can have\nmultiple .fetch entries.  To fetch all branches, you can also just\nconfigure its .branches.\n\n-- \nThomas Rast\ntr@thomasrast.ch\n"},{"id":"229726","messageId":"87941383056091@web26h.yandex.ru","threadId":"35232","inReplyTo":"87iowgiloj.fsf@linux-k42r.v.cablecom.net","subject":"Re: git svn already set … wanted to set to:","fromName":"DimanNe","fromEmail":"dimanne@ya.ru","sentAt":"2013-10-29T14:14:51Z","receivedAt":"2013-10-29T14:14:51Z","isPatch":false,"sender":{"key":"dimanne@ya.ru","avatar":null},"body":"> What does your config look like now?\n\n[core]\n        repositoryformatversion = 0\n        filemode = true\n        bare = false\n        logallrefupdates = true\n\n[svn-remote \"svn\"]\n        url = https://some_host/trunk/\n        fetch = :refs/remotes/git-svn\n\n[merge]\n        renameLimit = 50000\n\n[svn-remote \"stable-2012-09-13\"]\n        url = https://some_host/branches/stable-2012-09-13/\n        fetch = :refs/remotes/stable-2012-09-13\n\n\n\n29.10.2013, 11:25, \"Thomas Rast\" <tr@thomasrast.ch>:\n> DimanNe <dimanne@ya.ru> writes:\n>\n>>  I am trying to clone/fetch svn branch with git-svn:\n>>\n>>  git config --add svn-remote.stable-2012-03-29.url https://some_host/branch\n>>  git config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29\n>>  git svn fetch stable-2012-03-29\n>>\n>>  which gives me this error message:\n>>\n>>  svn-remote.stable-2012-03-29.url already set:\n>>  https://some_host/branch/ wanted to set to: https://some_host/\n>>\n>>  I know that I probably can fix this by re-fetching all svn-repo from\n>>  scratch, but it will take months or even years (due to size of repo).\n>\n> What does your config look like now?\n>\n> You should have only one svn-remote with one url, but it can have\n> multiple .fetch entries.  To fetch all branches, you can also just\n> configure its .branches.\n>\n> --\n> Thomas Rast\n> tr@thomasrast.ch\n"},{"id":"229817","messageId":"87ppqmg5me.fsf@linux-k42r.v.cablecom.net","threadId":"35232","inReplyTo":"87941383056091@web26h.yandex.ru","subject":"Re: git svn already set … wanted to set to:","fromName":"Thomas Rast","fromEmail":"tr@thomasrast.ch","sentAt":"2013-10-30T15:06:49Z","receivedAt":"2013-10-30T15:06:49Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"DimanNe <dimanne@ya.ru> writes:\n\n>> What does your config look like now?\n>\n> [core]\n>         repositoryformatversion = 0\n>         filemode = true\n>         bare = false\n>         logallrefupdates = true\n>\n> [svn-remote \"svn\"]\n>         url = https://some_host/trunk/\n>         fetch = :refs/remotes/git-svn\n>\n> [merge]\n>         renameLimit = 50000\n>\n> [svn-remote \"stable-2012-09-13\"]\n>         url = https://some_host/branches/stable-2012-09-13/\n>         fetch = :refs/remotes/stable-2012-09-13\n\nSounds like you should instead have only a single remote, along the\nlines of:\n\n[svn-remote \"svn\"]\n        url = https://some_host/\n        fetch = trunk:refs/remotes/git-svn\n        fetch = branches/stable-2012-09-13:refs/remotes/stable-2012-09-13\n\nor possibly, instead of manually listing the branches you want,\n\n        branches = branches/*:refs/remotes/svn/*\n\n-- \nThomas Rast\ntr@thomasrast.ch\n"},{"id":"229995","messageId":"299211383286360@web20h.yandex.ru","threadId":"35232","inReplyTo":"87ppqmg5me.fsf@linux-k42r.v.cablecom.net","subject":"Re: git svn already set … wanted to set to:","fromName":"DimanNe","fromEmail":"dimanne@ya.ru","sentAt":"2013-11-01T06:12:40Z","receivedAt":"2013-11-01T06:12:40Z","isPatch":false,"sender":{"key":"dimanne@ya.ru","avatar":null},"body":"Thank you, it seems, that you are right, and following works\n\n1) I cloned trunk from scratch\ngit svn clone -T trunk/ https://some_host --revision 1104830:HEAD\n\n2) Then add branches I want to fetch in .git/config:\nfetch = branches/proj/proj-stable-2013-08-14:refs/remotes/proj-stable-2013-08-14\n\n3) Then run\ngit svn fetch\nwait for about 10 hours without any output from command (this was most difficult step due to absence of output), and after that git started to fetch revisions!\n\n\n30.10.2013, 19:06, \"Thomas Rast\" <tr@thomasrast.ch>:\n> DimanNe <dimanne@ya.ru> writes:\n>\n>>>  What does your config look like now?\n>>  [core]\n>>          repositoryformatversion = 0\n>>          filemode = true\n>>          bare = false\n>>          logallrefupdates = true\n>>\n>>  [svn-remote \"svn\"]\n>>          url = https://some_host/trunk/\n>>          fetch = :refs/remotes/git-svn\n>>\n>>  [merge]\n>>          renameLimit = 50000\n>>\n>>  [svn-remote \"stable-2012-09-13\"]\n>>          url = https://some_host/branches/stable-2012-09-13/\n>>          fetch = :refs/remotes/stable-2012-09-13\n>\n> Sounds like you should instead have only a single remote, along the\n> lines of:\n>\n> [svn-remote \"svn\"]\n>         url = https://some_host/\n>         fetch = trunk:refs/remotes/git-svn\n>         fetch = branches/stable-2012-09-13:refs/remotes/stable-2012-09-13\n>\n> or possibly, instead of manually listing the branches you want,\n>\n>         branches = branches/*:refs/remotes/svn/*\n>\n> --\n> Thomas Rast\n> tr@thomasrast.ch\n"}]}