From: Dave Rodgman <dav1dr@eml.cc>
To: git@vger.kernel.org
Subject: Re: question: connecting to multiple remote svn projects
Date: Mon, 9 Nov 2009 10:59:25 +0000 (UTC) [thread overview]
Message-ID: <hd8smd$79e$2@ger.gmane.org> (raw)
In-Reply-To: 32541b130911061151q68ddcc58w209acf28c5eec2f@mail.gmail.com
>> Given a layout in a single subversion repository like this:
>>
>> module1/branches/1.0/work
>> module2/branches/1.0/work
>>
>> I would like achieve the following layout locally, in git:
>>
>> module1/work
>> module2/work
>>
>> Obviously I can create multiple git repositories in separate
>> directories, but I would like them to be in a single repository. I can
>> also get the same layout as subversion, but this breaks various bits of
>> build infrastructure.
>
> Can you just create the file structure you want using symlinks? That
> would be the easiest way.
It would, and this is what I do on Linux. On Windows, obviously, this
doesn't work.
>> I don't care about tracking the subversion branches in git, or being
>> able to switch between subversion branches.
>
> Don't care about tracking *any* subversion history, or just the history
> of branches other than the 1.0 branch you've listed above? I assume the
> latter, because otherwise the problem is easy (just copy the latest
> revision of the files into a git repo and commit).
Indeed. I want history, but only for a given branch.
> Other options that might work for you: create a "superproject" branch
> and import the two modules using git-submodule, or else import them
> using git-subtree (http://github.com/apenwarr/git-subtree). Or import
> the svn history and then use git-filter-branch to move stuff around.
As far as I can understand, git-submodule pulls in a specific commit,
as does git subtree? I've experimented a little but with not much success.
I want "git svn rebase" (or some equivalent command, or series of
commands) to update the contents of module1/work to the latest commit
into this branch, and similarly "git svn dcommit" should also commit into
module1, module2, etc. Basically, I want my working copy to have the same
functionality as if moduleX/work was the actual layout in subversion. I'm
using git as a client for a svn repository, rather than doing a one-time
import. Is this possible?
thanks for your help
Dave
next prev parent reply other threads:[~2009-11-09 11:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 17:55 question: connecting to multiple remote svn projects Dave Rodgman
2009-11-06 19:51 ` Avery Pennarun
2009-11-09 10:59 ` Dave Rodgman [this message]
2009-11-09 18:43 ` Avery Pennarun
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='hd8smd$79e$2@ger.gmane.org' \
--to=dav1dr@eml.cc \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.