From: Avery Pennarun <apenwarr@gmail.com>
To: Eric Wong <normalperson@yhbt.net>
Cc: Bruno Harbulot <Bruno.Harbulot@manchester.ac.uk>, git@vger.kernel.org
Subject: Re: Efficient cloning from svn (with multiple branches/tags subdirs)
Date: Wed, 14 Oct 2009 12:28:38 -0400 [thread overview]
Message-ID: <32541b130910140928jdac0187x754423e8d5c64e53@mail.gmail.com> (raw)
In-Reply-To: <20091014060307.GA17178@dcvr.yhbt.net>
On Wed, Oct 14, 2009 at 2:03 AM, Eric Wong <normalperson@yhbt.net> wrote:
> Bruno Harbulot <Bruno.Harbulot@manchester.ac.uk> wrote:
>> What surprises me is that it looks like it's looping over and over,
>> since sometimes it starts back from SVN revision 1 when it's trying to
>> import a new tag.
>
> Yeah, that's an unfortunate thing about the flexibility of Subversion,
> basically anything can be a "tag" or a directory and it's extremely
> hard for git svn to support any uncommon cases for tags/branches
> out-of-the box, so the manual config editing is needed.
I've been thinking about this myself for some time. One option that
might be "interesting" would be to just grab the *entire* svn tree
(from the root), and then use git-subtree[1] to slice and dice it into
branches using your local copy of git (which is fast and uses no
bandwidth) instead of during the svn fetch (which is slow and uses
lots of bandwidth). I think it would also simplify the git-svn code
quite a lot, at least for fetching, since there would always be a
global view of the tree and SVN things like "copy branch A to tag B"
would just be exactly that.
Of course I have no time to code this up myself, so I apologize for
just dumping ideas on you without code behind them. If this inspires
anyone, I'd be happy to help with any missing features (or
documentation) this exposes in git-subtree, though.
Have fun,
Avery
[1] http://github.com/apenwarr/git-subtree
next prev parent reply other threads:[~2009-10-14 16:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 18:13 Efficient cloning from svn (with multiple branches/tags subdirs) Bruno Harbulot
2009-10-14 6:03 ` Eric Wong
2009-10-14 9:07 ` Bruno Harbulot
2009-10-14 16:28 ` Avery Pennarun [this message]
2009-10-14 18:00 ` Eric Wong
2009-10-14 18:26 ` Avery Pennarun
2009-10-15 17:23 ` Bruno Harbulot
2009-10-15 17:29 ` B Smith-Mannschott
2009-10-16 11:20 ` Bruno Harbulot
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=32541b130910140928jdac0187x754423e8d5c64e53@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=Bruno.Harbulot@manchester.ac.uk \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
/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).