Operations on two repositories causes exception

Bug #344332 reported by Ted Gould
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

I got this exception when trying to merge a branch. I think it's likely because I had another bzr-svn operation going in another terminal. Considering how long it takes to do things like bzr branch using SVN repos I think it's important that SVN operations should be able to be executed in parallel.

$ bzr merge https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk
https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk is permanently redirected to https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk/
/usr/lib/python2.6/dist-packages/subvertpy/delta.py:21: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
bzr: ERROR: sqlite3.OperationalError: database is locked

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3420, in run
    location, revision, remember, possible_transports, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3513, in _get_merger_from_branch
    other_branch.last_revision())
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 432, in last_revision
    last_revmeta, mapping = self.last_revmeta()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 210, in last_revmeta
    for revmeta, mapping in self._revision_meta_history():
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/util.py", line 142, in next
    return self._next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/util.py", line 124, in _next
    ret = self._iterator.next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/repository.py", line 768, in _iter_reverse_revmeta_mapping_history
    revid = revmeta.get_revision_id(mapping)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/revmeta.py", line 856, in get_revision_id
    self._update_cache(mapping)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/revmeta.py", line 796, in _update_cache
    self.revnum, self.revnum, mapping.name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/revids.py", line 350, in insert_revid
    (min_revnum, max_revnum, revid, branch, mapping))
OperationalError: database is locked

bzr 1.13rc1 on python 2.6.1 (linux2)
arguments: ['/usr/bin/bzr', 'merge', 'https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzr_notification /home/ted/.bazaar/plugins/bzr_notification [unknown]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  power_management /home/ted/.bazaar/plugins/power_management [unknown]
  pqm /usr/lib/python2.6/dist-packages/bzrlib/plugins/pqm [1.3]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.4.4]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.5.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.