git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Biesinger <cbiesinger@web.de>
To: git@vger.kernel.org
Subject: Experiences with git-svnimport
Date: Sat, 11 Feb 2006 19:22:58 +0100	[thread overview]
Message-ID: <43EE2B82.5040204@web.de> (raw)

Hi,

since I now got git-svnimport to work, I thought I'd post my experiences 
with it, as that may be helpful for others.

I had various setups here. One of them was the usual (?) one, where I 
had a subversion repository at https://servername/svn, containing three 
projects.

One of them followed the usual structure:
   projectname/trunk
   projectname/branches/...

Now, the straightforward way would be:
   git-svnimport -C somedir https://servername/svn projectname

It turns out that this is equivalent to
   git-svnimport -C somedir https://servername/svn/projectname
if the -d or -D option is not specified, and those can't be used with https.

And that doesn't work. The problem is that the SVN repository contains 
urls relative to the top of the repository, i.e. /projectname/trunk/...
That doesn't match the /trunk/ that's expected by svnimport.

The solution for this: Apply the patch I sent earlier and use:
   git-svnimport -v -C somedir -T projectname/trunk -b 
projectname/branches https://servername/svn/

It turned out that the other two projects on this server didn't use the 
trunk/branches structure (I forgot about that when setting them up), but 
that was not a problem: I could just do:

   git-svnimport -v -C somedir -T projectname https://servername/svn/

This also works fine for a svn+ssh:// repository.

Now, maybe my setup was unusual, and I should instead have used separate 
repositories for different projects. However, this worked for me, and my 
experiences in getting this to work might be of interest to others.

                 reply	other threads:[~2006-02-11 18:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=43EE2B82.5040204@web.de \
    --to=cbiesinger@web.de \
    --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 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).