All of lore.kernel.org
 help / color / mirror / Atom feed
* git svn already set … wanted to set to:
@ 2013-10-29  6:57 DimanNe
  2013-10-29  7:24 ` Thomas Rast
  0 siblings, 1 reply; 5+ messages in thread
From: DimanNe @ 2013-10-29  6:57 UTC (permalink / raw)
  To: git

I am trying to clone/fetch svn branch with git-svn:

git config --add svn-remote.stable-2012-03-29.url https://some_host/branch
git config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29
git svn fetch stable-2012-03-29

which gives me this error message:

svn-remote.stable-2012-03-29.url already set: https://some_host/branch/ wanted to set to: https://some_host/

I 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).

So, is there any solutions?

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

* Re: git svn already set … wanted to set to:
  2013-10-29  6:57 git svn already set … wanted to set to: DimanNe
@ 2013-10-29  7:24 ` Thomas Rast
  2013-10-29 14:14   ` DimanNe
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Rast @ 2013-10-29  7:24 UTC (permalink / raw)
  To: DimanNe; +Cc: git

DimanNe <dimanne@ya.ru> writes:

> I am trying to clone/fetch svn branch with git-svn:
>
> git config --add svn-remote.stable-2012-03-29.url https://some_host/branch
> git config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29
> git svn fetch stable-2012-03-29
>
> which gives me this error message:
>
> svn-remote.stable-2012-03-29.url already set:
> https://some_host/branch/ wanted to set to: https://some_host/
>
> I 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).

What does your config look like now?

You should have only one svn-remote with one url, but it can have
multiple .fetch entries.  To fetch all branches, you can also just
configure its .branches.

-- 
Thomas Rast
tr@thomasrast.ch

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

* Re: git svn already set … wanted to set to:
  2013-10-29  7:24 ` Thomas Rast
@ 2013-10-29 14:14   ` DimanNe
  2013-10-30 15:06     ` Thomas Rast
  0 siblings, 1 reply; 5+ messages in thread
From: DimanNe @ 2013-10-29 14:14 UTC (permalink / raw)
  To: Thomas Rast; +Cc: git@vger.kernel.org

> What does your config look like now?

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true

[svn-remote "svn"]
        url = https://some_host/trunk/
        fetch = :refs/remotes/git-svn

[merge]
        renameLimit = 50000

[svn-remote "stable-2012-09-13"]
        url = https://some_host/branches/stable-2012-09-13/
        fetch = :refs/remotes/stable-2012-09-13



29.10.2013, 11:25, "Thomas Rast" <tr@thomasrast.ch>:
> DimanNe <dimanne@ya.ru> writes:
>
>>  I am trying to clone/fetch svn branch with git-svn:
>>
>>  git config --add svn-remote.stable-2012-03-29.url https://some_host/branch
>>  git config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29
>>  git svn fetch stable-2012-03-29
>>
>>  which gives me this error message:
>>
>>  svn-remote.stable-2012-03-29.url already set:
>>  https://some_host/branch/ wanted to set to: https://some_host/
>>
>>  I 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).
>
> What does your config look like now?
>
> You should have only one svn-remote with one url, but it can have
> multiple .fetch entries.  To fetch all branches, you can also just
> configure its .branches.
>
> --
> Thomas Rast
> tr@thomasrast.ch

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

* Re: git svn already set … wanted to set to:
  2013-10-29 14:14   ` DimanNe
@ 2013-10-30 15:06     ` Thomas Rast
  2013-11-01  6:12       ` DimanNe
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Rast @ 2013-10-30 15:06 UTC (permalink / raw)
  To: DimanNe; +Cc: git@vger.kernel.org

DimanNe <dimanne@ya.ru> writes:

>> What does your config look like now?
>
> [core]
>         repositoryformatversion = 0
>         filemode = true
>         bare = false
>         logallrefupdates = true
>
> [svn-remote "svn"]
>         url = https://some_host/trunk/
>         fetch = :refs/remotes/git-svn
>
> [merge]
>         renameLimit = 50000
>
> [svn-remote "stable-2012-09-13"]
>         url = https://some_host/branches/stable-2012-09-13/
>         fetch = :refs/remotes/stable-2012-09-13

Sounds like you should instead have only a single remote, along the
lines of:

[svn-remote "svn"]
        url = https://some_host/
        fetch = trunk:refs/remotes/git-svn
        fetch = branches/stable-2012-09-13:refs/remotes/stable-2012-09-13

or possibly, instead of manually listing the branches you want,

        branches = branches/*:refs/remotes/svn/*

-- 
Thomas Rast
tr@thomasrast.ch

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

* Re: git svn already set … wanted to set to:
  2013-10-30 15:06     ` Thomas Rast
@ 2013-11-01  6:12       ` DimanNe
  0 siblings, 0 replies; 5+ messages in thread
From: DimanNe @ 2013-11-01  6:12 UTC (permalink / raw)
  To: Thomas Rast; +Cc: git@vger.kernel.org

Thank you, it seems, that you are right, and following works

1) I cloned trunk from scratch
git svn clone -T trunk/ https://some_host --revision 1104830:HEAD

2) Then add branches I want to fetch in .git/config:
fetch = branches/proj/proj-stable-2013-08-14:refs/remotes/proj-stable-2013-08-14

3) Then run
git svn fetch
wait 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!


30.10.2013, 19:06, "Thomas Rast" <tr@thomasrast.ch>:
> DimanNe <dimanne@ya.ru> writes:
>
>>>  What does your config look like now?
>>  [core]
>>          repositoryformatversion = 0
>>          filemode = true
>>          bare = false
>>          logallrefupdates = true
>>
>>  [svn-remote "svn"]
>>          url = https://some_host/trunk/
>>          fetch = :refs/remotes/git-svn
>>
>>  [merge]
>>          renameLimit = 50000
>>
>>  [svn-remote "stable-2012-09-13"]
>>          url = https://some_host/branches/stable-2012-09-13/
>>          fetch = :refs/remotes/stable-2012-09-13
>
> Sounds like you should instead have only a single remote, along the
> lines of:
>
> [svn-remote "svn"]
>         url = https://some_host/
>         fetch = trunk:refs/remotes/git-svn
>         fetch = branches/stable-2012-09-13:refs/remotes/stable-2012-09-13
>
> or possibly, instead of manually listing the branches you want,
>
>         branches = branches/*:refs/remotes/svn/*
>
> --
> Thomas Rast
> tr@thomasrast.ch

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

end of thread, other threads:[~2013-11-01  6:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  6:57 git svn already set … wanted to set to: DimanNe
2013-10-29  7:24 ` Thomas Rast
2013-10-29 14:14   ` DimanNe
2013-10-30 15:06     ` Thomas Rast
2013-11-01  6:12       ` DimanNe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.