From: Eric Wong <normalperson@yhbt.net>
To: Fabian Molder <fm122@arcor.de>
Cc: git@vger.kernel.org
Subject: Re: git svn with non-standard svn layout
Date: Sun, 11 Oct 2009 00:09:37 -0700 [thread overview]
Message-ID: <20091011070937.GC16264@dcvr.yhbt.net> (raw)
In-Reply-To: <loom.20091010T001433-536@post.gmane.org>
Fabian Molder <fm122@arcor.de> wrote:
> Hello,
>
> - want to use git inside an huge SVN project
> --> so git-svn could do the job ..
>
>
> - I struggle with two things:
> A) - the SVN project has an non-standard layout
> B) - want to have (several) git's for just the (few) peaces I work on
>
> for A)
> ======
> - svn layout looks like this (simplified):
> - trunk (not really used, all interesting work in branches)
> - branches
> - r1.2
> - development
> - integration
> - r1.3
> - development
> - integration
> ...
>
> - inside development and integration is:
> - xapplication1
> - xapplication2
> - xapplication3
> ...
> - aa
> -bb
> -cc
> - zapplication1
> - zapplication2
> - zapplication3
> ...
>
> - I created an simplified svn test (from scratch; import/repo/workdir)
> via this bash-script: http://pastebin.ca/1608231
>
> for B)
> ======
> - the svn repo is very huge, but I'm only interested in these dirs:
> xapplication2/
> aa/bb/cc/zapplication1
> - my objectives:
> - have several local git's, just the ones I need:
> --> xapplication2/.git
> --> aa/bb/cc/zapplication1/.git
Hi Fabian,
Since you don't want to track the entire repo and these seem like
unrelated (history-wise) trees, you probably want the simplest cases:
git svn clone svn://example.com/path/to/xapplication2
git svn clone svn://example.com/path/to/aa/bb/cc/xapplication1
These commands are like doing the following with plain old svn:
svn co svn://example.com/path/to/xapplication2
svn co svn://example.com/path/to/aa/bb/cc/xapplication1
> I tried to use "git config svn-remote.svn.branches" to do this,
> please see in function "do_git_svn" in bash-script - but no success
svn-remote.svn.branches and tags are really only for repos with
standard layouts.
--
Eric Wong
next prev parent reply other threads:[~2009-10-11 7:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 22:24 git svn with non-standard svn layout Fabian Molder
2009-10-11 7:09 ` Eric Wong [this message]
2009-10-11 19:00 ` Fabian Molder
2009-10-14 6:33 ` Eric Wong
[not found] <CANPpUWyX+n7kMKZpCV=Oy=UmJb=9H=uZseYzU2-h1FLh2nzg8w@mail.gmail.com>
2011-09-24 18:37 ` Fwd: " Chris Harris
2011-09-25 3:45 ` Phil Hord
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=20091011070937.GC16264@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=fm122@arcor.de \
--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