From: Tom Huybrechts <tom.huybrechts@gmail.com>
To: Eric Wong <normalperson@yhbt.net>
Cc: git@vger.kernel.org
Subject: Re: git-svn: creating tags from a subdirectory of trunk
Date: Mon, 16 Mar 2009 20:02:08 +0100 [thread overview]
Message-ID: <632a37a0903161202w23848f41g5cde3942195369cb@mail.gmail.com> (raw)
In-Reply-To: <20090315232105.GA21667@dcvr.yhbt.net>
On Mon, Mar 16, 2009 at 12:21 AM, Eric Wong <normalperson@yhbt.net> wrote:
> Tom Huybrechts <tom.huybrechts@gmail.com> wrote:
>> 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.
>
> Hi Tom,
>
> This is a known problem with some repositories. My suggestion is to
> use individual "fetch" directives for each of those tags you want to
> follow.
>
> The -s/--stdlayout is only for projects that follow the SVN-recommended
> repository layout exactly and we haven't thought of a generic way to
> handle those non-standard tags in repos...
>
> --
> Eric Wong
>
Hi Eric,
The repository I'm trying to convert is that of Hudson. I did some
digging in the list archives, and found this came up earlier
(2009/01/08).
Back then you replied:
"""
Alternately, you could just clone the root and have all the branches all
over the place in one tree (your eventually working copy will be huge).
git svn clone https://svn.dev.java.net/svn/hudson
Basically this is the equivalent of:
svn co https://svn.dev.java.net/svn/hudson
Except you'll have the full history.
"""
Is that still valid ? That is what I did, and which caused the
behaviour I described.
Tom
next prev parent reply other threads:[~2009-03-16 19:04 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 [this message]
2009-03-16 21:08 ` Eric Wong
2009-03-17 14:43 ` Michael J Gruber
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=632a37a0903161202w23848f41g5cde3942195369cb@mail.gmail.com \
--to=tom.huybrechts@gmail.com \
--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).