git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Tom Huybrechts <tom.huybrechts@gmail.com>
Cc: git@vger.kernel.org, Eric Wong <normalperson@yhbt.net>
Subject: Re: git-svn: creating tags from a subdirectory of trunk
Date: Tue, 17 Mar 2009 15:43:13 +0100	[thread overview]
Message-ID: <49BFB701.3040800@drmicha.warpmail.net> (raw)
In-Reply-To: <632a37a0903151418u483ca6cal1582518b9120da8e@mail.gmail.com>

Tom Huybrechts venit, vidit, dixit 15.03.2009 22:18:
> Hi,
> 
> I'm trying to setup a git mirror of a svn repository.  The tags in
> this repository are not created trunk it self, but from subdirectories
> of trunk. The tags and branches are in the standard places.
> e.g:
> /trunk/main -> tags/main-1
> /trunk/plugins/foo -> tags/foo-1
> /trunk/plugins/bar -> tags/bar-1
> 
> I run 'git svn clone -s svn-url target'. It starts going over the
> history nicely until it reaches the first branch. It calls this branch
> something like tags/tag-name@revision, and starts retrieving the
> entire project history again from r1. This is repeated for every
> branch.

And I thought *I* had produced sick repos by abusing svn...
There are also such niceties as
/trunk/trunk/
in there.

The problem is that svn tags are branches (to the same extent that svn
branches are branches...) and git svn treats them as such, but the
hudson tags contain only subtrees. I think you have two options:

- Convert without tags, and try to assign real git tags later on based
on the output of svn log. (This assumes svn tags have not been abused as
branches.)

- Setup git svn configs for each subproject individually, since the tags
contain only subproject tags.

It seems as though hudson's tags have not been abused as branches,
except for some messing with deletes and recreations. So the first
approach may be worthwhile.

Michael

      parent reply	other threads:[~2009-03-17 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-15 21:18 git-svn: creating tags from a subdirectory of trunk Tom Huybrechts
2009-03-15 23:21 ` Eric Wong
2009-03-16 19:02   ` Tom Huybrechts
2009-03-16 21:08     ` Eric Wong
2009-03-17 14:43 ` Michael J Gruber [this message]

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=49BFB701.3040800@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=normalperson@yhbt.net \
    --cc=tom.huybrechts@gmail.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).