My experience with bzr-svn
Jelmer Vernooij
jelmer at samba.org
Mon May 18 23:47:29 BST 2009
Hi Lars,
On Mon, May 18, 2009 at 06:09:47PM -0400, Lars Kellogg-Stedman wrote:
> I'm trying to duplicate the effect of 'git svn clone
> https://svn.example.com/reporoot/projects' using the bzr-svn plugin.
> I've run into a number of problems that I thought I would document in
> the hopes that someone can offer a solution.
> (1) Installation problems
> This is a minor quibble: bzr-svn requires Subverty. I would normally
> expect an "easy_install Subverty" to take care of this, but Subverty
> is apparently not in the right repositories (so I installed it by
> hand, which was not substantially more difficult, of course). If the
> bzr-svn plugin used setuptools instead of distutils, I think the
> dependency could be handled automatically.
I don't see what setuptools has to do with this.
"easy_install subvertpy" works fine here.
> (2) Problems with self-signed certs
> I initially tried:
> bzr svn-import https://svn.example.com/reporoot/projects
> And received the error "cannot verify peer..." error from libcurl
> (which is true...the repo uses a self-signed certificate). I looked
> around and couldn't find a way to pass the equivalent of the curl CLI
> option '--insecure' option to bzr-svn. I added
> connection.setopt(pycurl.SSL_VERIFYPEER,0) to the pycurl transport,
> and ran into...
This is unrelated to bzr-svn, but to pycurl which is used by bzr (and
does not support self-signed certificates).
https://bugs.edge.launchpad.net/bzr/+bug/82086
> (3) Problems with authentication
> The repository requires authentication. I wasn't able to find any
> documentation on how to provide a username and password to bzr-svn.
New versions of bzr will prompt for a username and password (bzr >=
1.15). You can also specify username/password in the branch URL.
> Jelmer on #bzr pointed me at the "svn+https" scheme, which took care
> of all the connectivity issues, but I didn't find this documented on
> http://bazaar-vcs.org/BzrForeignBranches/Subversion nor by
> http://samba.org/~jelmer/bzr-svn/FAQ.html.
> Once the connectivity problems were resolved, I ran into a new problem:
> (4) Problems with partial imports
> I am trying to import only the "/projects/" directory of this
> subversion repository (part of the goal here is, in fact, to split
> apart an old and crufty Subversion repository containing too many
> things that should probably have been separate repositories from the
> beginning). The attempt fails with the following error:
> bzr: ERROR: The specified path is inside a branch. Specify a different
> URL or a different repository layout (see also 'bzr help svn-layout').
> I've read through 'bzr help svn-layout', and it didn't help me.
This is a known bug in 0.5.3, it should be fixed in 0.5.4.
Alternatively, you should be able to specify --layout trunk1.
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at samba.org> - http://jelmer.vernstok.nl/
00:35:39 up 1 day, 22:58, 9 users, load average: 0.91, 0.43, 0.24
More information about the bazaar
mailing list