git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Hord <hordp@cisco.com>
To: John Kristian <jkristian@linkedin.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git-svn with big subversion repository
Date: Wed, 02 Mar 2011 23:13:44 -0500	[thread overview]
Message-ID: <4D6F1578.3000203@cisco.com> (raw)
In-Reply-To: <C992EE5B.CBFB%jkristian@linkedin.com>

On 03/01/2011 09:43 PM, John Kristian wrote:
> 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

  parent reply	other threads:[~2011-03-03  4:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02  2:43 git-svn with big subversion repository John Kristian
2011-03-02 16:09 ` Thomas Ferris Nicolaisen
2011-03-03  4:13 ` Phil Hord [this message]
2011-03-05 10:53 ` Florian Weimer
2011-03-09  5:53 ` Jason Miller
     [not found]   ` <C99D031D.D0D9%jkristian@linkedin.com>
2011-03-11  0:32     ` Jason Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D6F1578.3000203@cisco.com \
    --to=hordp@cisco.com \
    --cc=git@vger.kernel.org \
    --cc=jkristian@linkedin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).