On Thu, 23 Aug 2007, Jing Xue wrote:
On Thu, Aug 23, 2007 at 08:29:54AM +0100, Julian Phillips wrote:
I haven't used svnimport in a while (and never with subprojects), but you
seem to be specifying that projectFoo is your trunk - which doesn't seem
right.
I would have expected the command to be:
git svnimport -C projectFoo -r -A svn-authors -I .gitignore svn://jabba
projectFoo
Thanks for bringing it up. :)
My svn structure (see my last email) is somewhat reversed from what
svnimport assumes, which seems to be more along the lines of:
repoRoot
-trunk
-projectFoo
-projectBar
-tags
-projectFoo
-projectBar
-branches
-projectFoo
-projectBar
So in my case I had to kind of cheat svnimport into thinking
'projectFoo' is the name of the "trunk" directory, and 'trunk' is the
actually project name. And I had to create 'dummytags' and
'dummybranches' at repoRoot level (following somebody else's tip found
on this list).
Ah, yes ... sorry. I've actually ended up using a homebrew script for
parsing svn dump files and feeding git-fast-import for a number of
reasons, so I'm a bit rusty with svnimport, and never looked at multiple
projects in one repo anyway. (One of which was that svnimport wasn't
creating a correct import actually - some files and directories were
simply missing).
Of course doing so has two problems:
1. I can only import one project at one time, but my plan is to have
separated git repo for each project going forward, so this works out
just fine.
2. I can't actually import any tags and branches because my real tags
and branches are under projectFoo/tags and projectFoo/branches. This is
somewhat a loss, but we can cope with it by having the svn repo around
as the history book.
But then if there is any better way to achieve this, I would certainly
be interested and eager to learn. Thanks.
I guess you've tried including projectFoo in the url? Other than that,
perhaps git-svn may have better luck?
--
Julian
---
I'm not a real movie star -- I've still got the same wife I started out
with twenty-eight years ago.
-- Will Rogers
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html