bzrlib.errors.ObjectNotLocked: KnitPackRepository('...') is not locked error when using --merge mode

Bug #206013 reported by Andrew Hunter
4
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
bzr-builddeb (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When using bzr-builddeb in merge mode, a bzrlib.errors.ObjectNotLocked: KnitPackRepository('...') is not locked error is raised if the --orig-dir value is incorrect. The full trace back is available at http://pastebin.ca/954275

It is worth noting that the operation is sucessful if the --orig-dir value is correctly set.

Imo, the error message is obscure (the actual error raised does not indicate the actual problem) and should be handled cleanly.

Revision history for this message
James Westby (james-w) wrote :

   1.
      Traceback (most recent call last):
   2.
        File "/home/rexbron/code/bleedingedge/trunk/blender-svn.py", line 32, in <module>
   3.
          blender.main()
   4.
        File "/home/rexbron/code/bleedingedge/trunk/bleedingedge.py", line 128, in main
   5.
          builddeb.run(branch=self.debianLocalLocation, result='./build-area', orig_dir='./', builder='dpkg-buildpackage ' + self.debuildOptions, merge = True)
   6.
        File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/__init__.py", line 266, in run
   7.
          build.export(use_existing)
   8.
        File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/builder.py", line 269, in export
   9.
          tarball = self._find_tarball()
  10.
        File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/builder.py", line 169, in _find_tarball
  11.
          self._get_upstream_from_watch()
  12.
        File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/builder.py", line 125, in _get_upstream_from_watch
  13.
          watch = self._tree.get_file_text(watch_id)
  14.
        File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 79, in get_file_text
  15.
          return ''.join(self.get_file_lines(file_id))
  16.
        File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 75, in get_file_lines
  17.
          weave = self._get_weave(file_id)
  18.
        File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 71, in _get_weave
  19.
          self._repository.get_transaction())
  20.
        File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1693, in get_weave_or_empty
  21.
          self.repo._pack_collection.ensure_loaded()
  22.
        File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1262, in ensure_loaded
  23.
          raise errors.ObjectNotLocked(self.repo)
  24.
      bzrlib.errors.ObjectNotLocked: KnitPackRepository('file:///home/rexbron/packages/blender/debian.bleedingedge/.bzr/repository/') is not locked

Changed in bzr:
status: New → Invalid
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Marked Incomplete since it seems fixed on Hardy.

Changed in bzr-builddeb:
importance: Undecided → Low
status: New → Incomplete
importance: Low → Wishlist
James Westby (james-w)
Changed in bzr-builddeb:
importance: Wishlist → Undecided
status: Incomplete → Invalid
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.