branching from an -in-use tree errors

Bug #273356 reported by Robert Collins
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

bzr branch localtree new-branch, while 'bzr pull' was running in
localtree:

bzr: ERROR: Could not acquire lock "[Errno 11] Resource temporarily
unavailable"
UserWarning: lock on <open file u'...localtree/.bzr/checkout/dirstate',
mode 'rb' at 0x15f5468> not released warn("lock on %r not released" %
self.f)

This is presumably due to the accelerated 'copy-content-from-tree' code
path; it would be nice to handle this and fall back to just opening the
branch.

the relevant parts of the bt:
File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/bzrdir.py", line
1451, in create_workingtree
accelerator_tree=accelerator_tree, hardlink=hardlink)
File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/workingtree_4.py",
line 1366, in initialize
basis = accelerator_tree.revision_tree(revision_id)
File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/decorators.py",
line 136, in read_locked
self.lock_read()

 affects bzr

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Jelmer Vernooij (jelmer)
Changed in bzr:
importance: Undecided → Medium
status: New → Triaged
Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: locking
Martin Pool (mbp)
tags: added: dirstate
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: removed: check-for-breezy
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.