Is this the common usage of using bzr-svn with subversion and bazaar repositories?

Asked by Guanpeng Xu

I want to do the following: record my changes with bazaar in a bazaar repository and synchronize the changes with a subversion repository. I find this approach workable:

Initially:

$ bzr init-repo svn-repo
$ cd svn-repo
$ bzr co svn+http://svn-repository
$ cd svn-repository
$ bzr branch .../bzr-repository/trunk bzr-trunk
$ bzr join bzr-trunk
$ bzr ci -m "Added the bazaar trunk to the subversion repository"

And from then on, once the bazaar repository is updated:

$ cd svn-repo/svn-repository/bzr-trunk
$ bzr merge .../bzr-repository/trunk
$ bzr ci -m "Merged changes from bazaar trunk"

Is this the common usage? Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

On Tue, 2010-05-25 at 02:57 +0000, Guanpeng Xu wrote:
> Question #112163 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/112163
>
> Description changed to:
> I want to do the following: record my changes with bazaar in a bazaar
> repository and synchronize the changes with a subversion repository. I
> find this approach workable:
>
> Initially:
>
> $ bzr init-repo svn-repo
> $ cd svn-repo
> $ bzr co svn+http://svn-repository
> $ cd svn-repository
> $ bzr branch .../bzr-repository/trunk bzr-trunk
> $ bzr join bzr-trunk
> $ bzr ci -m "Added the bazaar trunk to the subversion repository"
I don't quite understand this - you wouldn't generally use join here
 but rather push to svn+http://svn-repository/trunk from the bzr branch.

bzr join is for combining branches, and the root of the repository isn't
usually really a branch.

you might want to have a look at the bzr-svn info in the plugins guide.

Cheers,

Jelmer

Revision history for this message
Guanpeng Xu (herberteuler) said :
#2

Well, I have a problem with push. The subversion repository makes a restriction to the commit messages: they have to be at least 20 characters long. When committing to the bazaar repository, I didn't always follow that rule, so when I do pushing I got error messages indicate my commit message violate that rule. I find with join and merge I can avoid this problem.

Can you help with this problem?

Provide an answer of your own, or ask Guanpeng Xu for more information if necessary.

To post a message you must log in.