bzr-svn: Issue pushing to svn repo with hooks.
Jelmer Vernooij
jelmer at samba.org
Tue Feb 14 15:37:58 UTC 2012
On 02/13/2012 09:20 PM, Eric Berry wrote:
> I recently upgraded Bazaar on my Mac and got the latest bzr-svn, and
> now I'm getting some error messages I was previously getting.
>
> It has been a very long time since I upgraded, so I don't know what
> the last version of bzr-svn was where it worked.
>
> The issue is that our SVN repo has some commit hooks which reject the
> commit and return a message with a code-review number in it - or a
> message when the corresponding Jira ticket isn't in the right place.
>
> Previously, when the hook rejected the commit bzr-svn would printout
> whatever error message there was. After upgrading I now get an error
> message:
>
> [error]
> bzr: ERROR: exceptions.AssertionError: adding busy connection in pool
>
> Traceback (most recent call last):
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line
> 946, in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line
> 1150, in run_bzr
> ret = run(*run_argv)
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line
> 699, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line
> 721, in run
> return self._operation.run_simple(*args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line
> 135, in run_simple
> self.cleanups, self.func, *args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line
> 165, in _do_with_cleanups
> result = func(*args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line
> 1204, in run
> use_existing_dir=use_existing_dir, no_tree=no_tree)
> File "/Library/Python/2.6/site-packages/bzrlib/push.py", line 142,
> in _show_push_branch
> remember, create_prefix)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/remote.py", line
> 447, in push_branch
> overwrite=overwrite)
> File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line
> 1118, in push
> lossy, *args, **kwargs)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line
> 971, in push
> self._update_revisions(stop_revision, overwrite)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line
> 897, in _update_revisions
> self._push(stop_revision, overwrite=overwrite, push_metadata=True)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line
> 886, in _push
> layout=self.target.layout, project=self.target.project)
> File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/push.py",
> line 333, in push_branch
> append_revisions_only=append_revisions_only)
> File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/push.py",
> line 354, in push_todo
> push_metadata=push_metadata)
> File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/push.py",
> line 391, in push_revision_series
> project=project, layout=layout)
> File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/push.py",
> line 409, in push_revision_inclusive
> base_foreign_info=base_foreign_info)
> File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/push.py",
> line 439, in push_single_revision
> root_action=root_action)
> File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/push.py",
> line 175, in push_revision_tree
> revid = builder.commit(rev.message)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/errors.py", line
> 141, in convert
> return unbound(*args, **kwargs)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/commit.py", line
> 828, in commit
> self.repository.transport.add_connection(self.conn)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/transport.py",
> line 397, in add_connection
> self.connections.add(conn)
> File
> "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/transport.py",
> line 326, in add
> assert not connection.busy, "adding busy connection in pool"
> AssertionError: adding busy connection in pool
>
> bzr 2.4.2 on python 2.6.1 (Darwin-10.8.0-x86_64-i386-64bit)
> arguments: ['/usr/local/bin/bzr', 'push']
> plugins: bash_completion[2.4.2], bzrtools[2.4.0], changelog_merge[2.4.2],
> colo[0.3.0], email[unknown], explorer[1.2.1], extmerge[unknown],
> fastimport[0.11.0dev], git[0.6.6dev], keychain[0.1.0],
> launchpad[2.4.2],
> loom[2.2.1dev], netrc_credential_store[2.4.2], news_merge[2.4.2],
> pipeline[1.1.0], qbzr[0.22.0dev], rewrite[0.6.2], svn[1.1.0],
> upload[1.0.1dev], weave_fmt[2.4.2], xmloutput[0.8.8]
> encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
>
> *** Bazaar has encountered an internal error. This probably indicates a
> bug in Bazaar. You can help us fix it by filing a bug report at
> https://bugs.launchpad.net/bzr/+filebug
> including this traceback and a description of the problem.
> [/error]
>
> I've tried upgrading to the latest bzr-svn using 'bzr branch
> lp:bzr-svn svn' under my ~/.bazaar/plugins directory, but the error
> remains.
>
> I did a search and found that this error has come up before, but it
> was marked resolved - and didn't exactly match my scenario.
> https://bugs.launchpad.net/ubuntu/+source/bzr-svn/+bug/890529
>
> Any help here would be greatly appreciated.
Something seems to be eating my emails, so I'll try this again...
Can you paste the traceback as you get it with bzr-svn trunk or 1.2.0 ?
It should be different from what you're getitng with 1.1.0 (which is
fairly old).
Cheers,
Jelmer
More information about the bazaar
mailing list