* Usage with Subversion, externals
@ 2008-06-22 21:03 John Locke
0 siblings, 0 replies; only message in thread
From: John Locke @ 2008-06-22 21:03 UTC (permalink / raw)
To: Git Mailing List
Hi,
Brand new git user, trying to get my head around how to use this after
years of Subversion usage.
I have a project that uses svn:externals to load a dependent library.
The external repository, dojo toolkit, has a different layout for trunk
than the tagged versions. Right now, I've got these svn externals defined:
> john@shasta:/opt/www/auriga$ svn pg svn:externals public_html/
> dojo http://svn.dojotoolkit.org/src/tags/release-1.1.1/
>
> john@shasta:/opt/www/auriga$ svn pg svn:externals public_html/dojo-trunk/
> dojo http://svn.dojotoolkit.org/src/dojo/trunk/
> dijit http://svn.dojotoolkit.org/src/dijit/trunk/
> dojox http://svn.dojotoolkit.org/src/dojox/trunk/
public_html/dojo contains dojo, dijit, dojox, and util directories,
tagged to the specific version. The dojo svn repository stores trunk
versions for each of these modules in src/<module>/trunk.
The problem I'm trying to solve by switching to git is that there are
some API changes to Dojo that break the current production version of my
application. So I'd like to branch my application and develop it against
the Dojo trunk, while still being able to make changes to the mainline
code using the stable Dojo tagged version.
I've used git svn clone to copy my main application, and I'm also
pulling down the dojo svn repository (would be happy to post this
somewhere when it's done).
So: Question 1: how do I get public_html/dojo in my working copy to
contain dojo/trunk, dijit/trunk, and dojox/trunk from my external git
repository? I'm assuming I use a submodule for this, and git submodule,
but I'm wondering how I point git submodule to a particular path in the
other repository.
... and question 2: How do I set up a different git submodule path (in
the same external git repository) when I work on a different branch?
I'd like to be able to git checkout the development branch and have it
switch the dojo submodule to contain dojo/trunk (aliased as dojo),
dijit/trunk (aliased as dijit), and dojox/trunk (aliased as dojox). And
then when I git checkout the main branch have it switch back to
tags/release-1.1.1 (which contains dojo, dijit, and dojox without a
trunk subdirectory).
Any thoughts?
--
John Locke
"Open Source Solutions for Small Business Problems"
published by Charles River Media, June 2004
http://www.freelock.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-22 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-22 21:03 Usage with Subversion, externals John Locke
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).