git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn with big subversion repository

From
Phil Hord <hordp@cisco.com>
Date
Mar 3, 2011, 04:13 UTC
Message-ID
<4D6F1578.3000203@cisco.com>
In-Reply-To
<C992EE5B.CBFB%jkristian@linkedin.com>
On 03/01/2011 09:43 PM, John Kristian wrote:
Show 22 quoted lines
> How do you recommend using git to work with branches of a large, busy
> subversion repository? In general, how can small teams use git for their
> tasks, and use subversion to coordinate with a larger organization?
>
> git-svn has some trouble, I find. For example, this tries to copy the entire
> repo starting with revision 1:
>
> git svn clone --stdlayout svn+ssh://server/repo/project
>
> This would take weeks, I estimate for my subversion repository.
>
> Choosing a subset of the repository enables git svn clone to cope, but then
> git svn fetch will stall after processing a few revisions.  For example:
>
> git svn clone --no-follow-parent --no-minimize-url \
>  --branches=branches \
>  --ignore-paths="^(?!branches/(TEAM_|RELEASE_))" \
>  -r $BASE svn+ssh://server/repo/project
> git svn fetch --no-follow-parent # stalls
>
> I don't why it stalls. I guess it's doing something that requires processing
> the entire subversion repository.

My initial git-svn clone took several days and many restarts. It was much faster on my laptop. I found out later I had a flaky router and it was dropping about 20% of my packets. Replaced the router and the clone dropped to a reasonable couple-of-hours. Is it just me?

You can optimize by cloning specific paths inside the svn repo and then merging in git later.

Phil
Previous: Thomas Ferris NicolaisenNext: Florian Weimer
Message 3 of 6 in “git-svn with big subversion repository”
  1. John KristianMar 2, 2011
  2. Thomas Ferris NicolaisenMar 2, 2011
  3. Phil HordMar 3, 2011
  4. Florian WeimerMar 5, 2011
  5. Jason MillerMar 9, 2011
  6. Jason MillerMar 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.