threads / discuss / 13325

Importing a strange svn repo layout w/ git-svn

Subject: Importing a strange svn repo layout w/ git-svn

## tl;dr

3 messages between Apr 30, 2008 and Apr 30, 2008.

replies: 2people: 2as markdown or json

Asheesh Laroia· Apr 30, 2008, 04:20 UTC · lore

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· Apr 30, 2008, 05:50 UTC · re: Asheesh Laroia · lore

Re: Importing a strange svn repo layout w/ git-svn

> 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· Apr 30, 2008, 06:44 UTC · re: Paolo Bonzini · lore

Re: Importing a strange svn repo layout w/ git-svn

On Wed, 30 Apr 2008, Paolo Bonzini wrote:
Show 6 quoted lines
>
>> 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.

← back to recent threads