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, 14:36 UTC
Message-ID
<20070311143638.GA7822@diana.vm.bytemark.co.uk>
In-Reply-To
<45F3EA37.2080502@tropezien.de>
On 2007-03-11 12:38:31 +0100, Georg Lohrer wrote:
Show 17 quoted lines
> But times ago I have had the idea of not using the traditional
> structure of subversion for some of my repositories but using the
> repository directly as single directory - no trunk, no tags, no
> branches. That was because I thought only a geek would have the
> "complicated" way for only a few files without any need for tags and
> branches. And now the git-svnimport does not seem to be able to
> handle a SVN-repos structure like mine:
>
> ~/svnrepos/
>      |------- projectA
>                  |---- foo.cpp
>                  |---- foo.h
>
> I want to import projectA into git _with_ the commit-history (there
> are of course no tags and no branches). Is there a way to do that
> with git-svnimport? Or do I have to throw away all the details,
> checkout projectA and reimport it as initial version with git?
You could try something like this:
  trunk: svnrepos/projectA
  tags: svnrepos/dummytags
  branches: svnrepos/dummybranches
I haven't tested, but I think that kind of maneouver should work.
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Georg LohrerNext: Georg Lohrer
Message 2 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.