bzr-svn push to new subversion repo

Jelmer Vernooij jelmer at samba.org
Thu May 12 14:27:35 UTC 2011


Hi Michael,

On Thu, 2011-05-12 at 13:27 +0100, Michael Gliwinski wrote:

> I'm encountering some problems when trying to push from a native bzr branch to
> a newly created subversion repo, e.g.:
> 
>   $ svnadmin create svnrepo
>   $ bzr push -d bzrbranch file:///$PWD/svnrepo/trunk
> 
> I decided to post here first as I seem to be getting different errors with
> different versions of bzr-svn but they always fail near the same revision so
> there may be something wrong with my branch.
> 
> With bzr-svn 1.0.4 (specifically r3475 as it declares compatibility with bzr 2.3):

> it stops on rev 200 with error:
> 
> Initialising Subversion metadata cache in /home/gliwm/.cache/bazaar/svn/e8f700c6-bbab-4cbe-a892-6790682ae729.
> bzr: ERROR: exceptions.OSError: [Errno 24] Transaction cleanup failed                                                                                
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 926, in exception_to_return_code
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1126, in run_bzr
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 691, in run_argv_aliases
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 713, in run
>   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
>   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
>   File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1132, in run
>   File "/usr/lib/python2.7/dist-packages/bzrlib/push.py", line 140, in _show_push_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/remote.py", line 297, in push_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/remote.py", line 224, in import_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 347, in push_new_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 217, in push_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 239, in push
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 153, in push_revision_tree
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/errors.py", line 144, in convert
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/commit.py", line 840, in commit
> OSError: [Errno 24] Transaction cleanup failed
This is a bug in Subversion, see http://mail-archives.apache.org/mod_mbox/subversion-dev/201006.mbox/%3CAANLkTikYLLFL2WdugSArXROpJgDK4msIZ03Z5MshrPd_@mail.gmail.com%3E
for details.

You should be able to work around it by using svn+ssh://localhost/
rather than file://.

> With bzr-svn r3710:
> 
> stops on rev 200 with error:
> 
> Initialising Subversion metadata cache in /home/gliwm/.cache/bazaar/svn/9db85476-3b6e-476e-8872-57a84ff192d1.
> bzr: ERROR: exceptions.AssertionError: adding busy connection in pool
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 926, in exception_to_return_code
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1126, in run_bzr
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 691, in run_argv_aliases
>   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 713, in run
>   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
>   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
>   File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1132, in run
>   File "/usr/lib/python2.7/dist-packages/bzrlib/push.py", line 140, in _show_push_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/remote.py", line 403, in push_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/remote.py", line 329, in import_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 557, in push_new_branch
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 358, in push_todo
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 395, in push_revision_series
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 413, in push_revision_inclusive
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 443, in push_single_revision
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/push.py", line 179, in push_revision_tree
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/errors.py", line 140, in convert
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/commit.py", line 796, in commit
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/transport.py", line 395, in add_connection
>   File "/home/gliwm/.local/tmp/bzr-svn-push-test/bzr-plugins/svn/transport.py", line 323, in add
> AssertionError: adding busy connection in pool
This should be fixed in trunk now - any chance you can give it a try
again?

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110512/faa8c17b/attachment-0001.pgp>


More information about the bazaar mailing list