# Importing a strange svn repo layout w/ git-svn

3 messages from 2008-04-30 to 2008-04-30. Participants: Asheesh Laroia, Paolo Bonzini.
Thread: https://gitlist.dev/t/13325

## Asheesh Laroia, 2008-04-30 04:20

Subject: Importing a strange svn repo layout w/ git-svn
Message-ID: <alpine.DEB.1.00.0804300011390.29172@rose.makesad.us>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0804300011390.29172%40rose.makesad.us

```
I'm working on cloning the MediaWiki (a common wiki engine, used to power 
e.g. wikipedia.org) Subversion tree using git-svn.  It has this peculiar 
layout:

$BASE/trunk/phase3 is the project trunk
$BASE/tags/TAG_NAME/phase3 is the tag TAG_NAME
$BASE/branches/BRANCH_NAME/phase3 is the branch BRANCH_NAME

"phase3" is not the only directory in e.g. 
http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_12/ - there is 
also an "extensions" directory, a snapshot of MediaWiki extensions for 
that branch.  But those are truly separate projects with separate 
contributors, and have to be installed in a separate place.

When cloning other svn repositories, I saw that strange layouts can be 
accommodated by just cloning the trunk.  But in this case,

I considered using git-svn like this:

$ git svn http://svn.wikimedia.org/svnroot/mediawiki/ -t 
tags/phase3/ -b branches/phase3/ -T trunk/phase3/

But that wouldn't be correct, since it wouldn't actually pick up the tag 
or branch names!

Is there a way to get git-svn to handle this situation?  Perhaps git-svn 
has a "suffix $DIR to the repository URL" option that I missed.  If not, 
is it conceivable it could?

-- Asheesh.

-- 
Beauty?  What's that?
 		-- Larry Wall in <199710221937.MAA25131@wall.org>

```

## Paolo Bonzini, 2008-04-30 05:50

Subject: Re: Importing a strange svn repo layout w/ git-svn
Message-ID: <481808A7.6080908@gnu.org>
URL: https://gitlist.dev/e/481808A7.6080908%40gnu.org
In-Reply-To: <alpine.DEB.1.00.0804300011390.29172@rose.makesad.us>

```

> Is there a way to get git-svn to handle this situation?  Perhaps git-svn 
> has a "suffix $DIR to the repository URL" option that I missed.  If not, 
> is it conceivable it could?

See the CONFIGURATION section of git-svn(1).

Paolo

```

## Asheesh Laroia, 2008-04-30 06:44

Subject: Re: Importing a strange svn repo layout w/ git-svn
Message-ID: <alpine.DEB.1.00.0804292325580.2603@alchemy.localdomain>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0804292325580.2603%40alchemy.localdomain
In-Reply-To: <481808A7.6080908@gnu.org>

```
On Wed, 30 Apr 2008, Paolo Bonzini wrote:

>
>> Is there a way to get git-svn to handle this situation?  Perhaps git-svn 
>> has a "suffix $DIR to the repository URL" option that I missed.  If not, is 
>> it conceivable it could?
>
> See the CONFIGURATION section of git-svn(1).

Oops, thanks!  I read through the command-line options of the man page, 
but not all the way down to the CONFIGURATION where this is in fact 
clearly discussed.

That solved my issue!

-- Asheesh.

-- 
There's nothing very mysterious about you, except that
nobody really knows your origin, purpose, or destination.

```
