git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to use git-svnimport without trunk, tags and branches?

From
Karl Hasselström <kha@treskal.com>
Date
Mar 11, 2007, 20:26 UTC
Message-ID
<20070311202620.GB15336@diana.vm.bytemark.co.uk>
In-Reply-To
<45F434E9.7040003@tropezien.de>
On 2007-03-11 17:57:13 +0100, Georg Lohrer wrote:
Show 17 quoted lines
> Karl Hasselström schrieb:
>
> > You could try something like this:
> >
> >  trunk: svnrepos/projectA
> >  tags: svnrepos/dummytags
> >  branches: svnrepos/dummybranches
>
> yes, that does the trick. I use:
>
> $ cd ~/tmp/git-test
> $ tar xvfj fooRepos.tar.bz2
> $ mv fooRepos foorRepos.svnrepos
> $ svn mkdir file:///home/georg/tmp/git-test/fooRepos.svnrepos/dummytags
> $ svn mkdir file:///home/georg/tmp/git-test/foorRepos.svnrepos/dummybranches
> $ mkdir fooRepos.git; cd fooRepos.git
> $ git-svnimport -b dummybranches -t dummytags -T projectA file:///home/georg/tmp/git-test/fooRepos.svnrepos

Did you try importing without creating the dummy* directories? I think it may work even if they don't exist.

> Unfortunately there was a bunch of directories instead of a single
> projectA-directory. Do I have to repeat the above mentioned sequence
> for every directory (projectA, projectB, ...) or is there a simple
> way of git-svnimport'ing into an existing git-repository?
You could try this:
  trunk: dummy
  tags: dummy
  branches: svnrepos

That should turn svnrepos/projectA into the branch projectA, svnrepos/projectB into the branch projectB, and so on.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Georg LohrerNext: pacco@tropezien.de
Message 4 of 5 in “How to use git-svnimport without trunk, tags and branches?”
  1. Georg LohrerMar 11, 2007
  2. Karl HasselströmMar 11, 2007
  3. Georg LohrerMar 11, 2007
  4. Karl HasselströmMar 11, 2007
  5. pacco@tropezien.deMar 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.