Using bzr push to send Bazaar branches to Subversion.

Dan MacMillan danm at emerald-associates.com
Thu Aug 23 21:33:32 UTC 2012


I tried with a different project that did not originate in Subversion
and I get the same result, so that doesn't seem to be the problem.

Dan MacMillan | Integration Specialist
Emerald Associates Inc.

Direct: 403.686.7100 ext 8930
Toll Free: 1.877.316.6005 ext 8930

Canada's Exclusive Oracle Primavera Platinum Partner


-----Original Message-----
From: Dan MacMillan 
Sent: Thursday, August 23, 2012 12:04
To: 'Jelmer Vernooij'
Cc: bazaar at lists.canonical.com
Subject: RE: Using bzr push to send Bazaar branches to Subversion.

Jelmer,

I did try that, with similar results.

'svnadmin create' creates a repository and not a branch, it's true.  But
Subversion doesn't have a command to create branches, because Subversion
doesn't have any concept of a branch.

What I've done now is:

Created a new Subversion repository on our server (which is how I really
want this to work).  I added branches, tags, and trunk directories to
it.  Then I tried this:

2012-08-23 11:37:57.56 D:\funbranch>bzr push
https://hobbit/bogus/svn/trunk Initialising Subversion metadata cache in
C:\Users\danm\AppData\Local\svn-cache\ea84e1fe-ed48-11e1-9c7b-ca995e37e3
66.
bzr: ERROR: Not a branch: "trunk/branches".

I tried a few different things ... messing with the layout in
%APPDATA%\bazaar\2.0\subversion.conf with no success.

Hmm ... a thought occurs to me now.  This project originated in a
Subversion repository, and it was migrated to Bazaar using bzr
svn-import.  Would that have any bearing on this?  The structure of the
source Subversion repository is significantly different from the
structure of the new repository where I am trying to push it now.  Could
that be confusing the plugin?  I imagine it might because many of the
Bazaar revisions carry Subversion metadata with them (e.g. svn revno)
and most of the file IDs relate to where the files were introduced in
the source Subversion repo.  The project has been in Bazaar for quite
some time now but the project is in maintenance and most of the files
originated in the Subversion repository.

Dan MacMillan | Integration Specialist
Emerald Associates Inc.

Direct: 403.686.7100 ext 8930
Toll Free: 1.877.316.6005 ext 8930

Canada's Exclusive Oracle Primavera Platinum Partner

-----Original Message-----
From: Jelmer Vernooij [mailto:jelmer at samba.org]
Sent: Wednesday, August 22, 2012 18:01
To: Dan MacMillan
Cc: bazaar at lists.canonical.com
Subject: Re: Using bzr push to send Bazaar branches to Subversion.

On Wed, Aug 22, 2012 at 04:33:36PM -0600, Dan MacMillan wrote:
> Some time ago on this list I asked about using Bazaar with Crucible, 
> which is not directly supported.  Someone suggested using bzr-svn to 
> push my changes into a Subversion repository and have Crucible 
> connected to the Subversion repository.  I just gave this my first 
> shot with spectacular results.



> 2012-08-21 17:44:04.94 D:\funbranch>svnadmin create D:\funbranchsvn



> 2012-08-21 17:44:11.93 D:\funbranch>bzr push d:\funbranchsvn

> Initialising Subversion metadata cache in 
> C:\Users\danm\AppData\Local\svn-cache\569934a1-34ad-3e4e-a18b-0340f30a
> 52
> 7c.

> bzr: ERROR: Not a branch: "branches".



> D:\funbranch is the 'trunk' Bazaar branch of one of our real projects 
> holding about 500 revisions.



> I tried figuring this out on my own and I'm just not connecting the 
> dots.  Any suggestions?
The error message is indeed a bit confusing.

Note that 'svnadmin create' creates a repository and not a branch.

You probably want:

bzr push d:\funbranchsvn\trunk

Cheers,

Jelmer



More information about the bazaar mailing list