git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Grimm <koreth@midwinter.com>
To: David Hanson <drh@drhanson.net>
Cc: git@vger.kernel.org
Subject: Re: importing multi-project svn repositories
Date: Mon, 07 May 2007 11:06:13 -0700	[thread overview]
Message-ID: <463F6A95.30207@midwinter.com> (raw)
In-Reply-To: <C05C5EF4-EC68-490B-946E-630117393F4E@drhanson.net>

David Hanson wrote:
> I'd like to import calc at the top level, put calc/tags/foo in git's 
> tags/calc/foo and calc/branches/baz in git's heads/calc/baz. Ditto for 
> calendar, spreadsheet, etc.

Try git-svn rather than git-svnimport. The latter, AFAIK, is no longer 
really maintained. The former will do what you want pretty easily. You 
just run it like

git svn clone --prefix=calc/ -T trunk -t tags -b branches \
    http://svn/repo/url/calc gitrepo

and it'll create a git repository called "gitrepo" with the calc 
project's trunk/tags/branches as git tags. Then do

git svn clone --prefix=spreadsheet/ -T trunk -t tags -b branches \
    http://svn/repo/url/spreadsheet gitrepo

and it will add the spreadsheet branches to the same repo. The 
"--prefix" option is needed to keep the branch namespaces from 
overlapping. git-svn will make an attempt to figure out the correct 
history of the branches and tags relative to the trunk so they look like 
sane git branches.

If you want to be able to check out calc and spreadsheet simultaneously, 
then you probably need to use git's submodule support, which is kind of 
a work in progress at the moment.

-Steve

  reply	other threads:[~2007-05-07 18:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-06 18:56 importing multi-project svn repositories David Hanson
2007-05-07 18:06 ` Steven Grimm [this message]
2007-05-08  3:48   ` Dave Hanson
2007-05-08  7:16     ` Deprecate git-svnimport? Steven Grimm
2007-05-08  9:58       ` minimize_url in git-svn? Junio C Hamano
2007-05-08 11:28         ` Johannes Schindelin
2007-05-08 19:34         ` Eric Wong
2007-05-09  4:56           ` Junio C Hamano
2007-05-13 16:58           ` [PATCH] git-svn: don't attempt to minimize URLs by default Eric Wong

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=463F6A95.30207@midwinter.com \
    --to=koreth@midwinter.com \
    --cc=drh@drhanson.net \
    --cc=git@vger.kernel.org \
    /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).