[Bug 746289] Re: bzr keywords plugin crashed with NotImplementedError in inventory()

Jelmer Vernooij 746289 at bugs.launchpad.net
Fri Mar 23 23:49:15 UTC 2018


** Changed in: brz
       Status: Triaged => Fix Committed

** Changed in: brz
    Milestone: None => 3.0.0

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/746289

Title:
  bzr keywords plugin crashed with NotImplementedError in inventory()

Status in Breezy:
  Fix Committed
Status in Bazaar:
  Confirmed
Status in bzr package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: bzr

  Running, "bzr unshelve" or "bzr unshelve 1" caused a bzr failure:

  ___________________________

  $ bzr unshelve 1
  Using changes with id "1".
  bzr: ERROR: exceptions.NotImplementedError: <property object at 0xa57aaa4>                                                                                    

  Traceback (most recent call last):
    File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
      return the_callable(*args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
      ret = run(*run_argv)
    File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
      return self.run(**all_cmd_args)
    File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
      return self._operation.run_simple(*args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
      self.cleanups, self.func, *args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 5923, in run
      unshelver.run()
    File "/usr/lib/python2.6/dist-packages/bzrlib/shelf_ui.py", line 478, in run
      merger.do_merge()
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 704, in do_merge
      merge = operation.run_simple()
    File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
      self.cleanups, self.func, *args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 675, in _do_merge_to
      merge.do_merge()
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 814, in do_merge
      operation.run()
    File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 131, in run
      self.cleanups, self.func, self, *args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 819, in _do_merge
      self._compute_transform()
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 857, in _compute_transform
      file_status = self._do_merge_contents(file_id)
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1369, in _do_merge_contents
      hook_status, lines = hook.merge_contents(params)
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1453, in merge_contents
      return self._default_other_winner_merge(merge_hook_params)
    File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1436, in _default_other_winner_merge
      filter_tree_path=filter_tree_path)
    File "/usr/lib/python2.6/dist-packages/bzrlib/transform.py", line 2570, in create_from_tree
      ContentFilterContext(filter_tree_path, tree))
    File "/usr/lib/python2.6/dist-packages/bzrlib/filters/__init__.py", line 170, in filtered_output_bytes
      chunks = filter.writer(chunks, context)
    File "/home/james/.bazaar/plugins/keywords/keywords.py", line 259, in _normal_kw_expander
      return _kw_expander(chunks, context)
    File "/home/james/.bazaar/plugins/keywords/keywords.py", line 254, in _kw_expander
      encoder=encoder)]
    File "/home/james/.bazaar/plugins/keywords/keywords.py", line 202, in expand_keywords
      expansion = expansion(context)
    File "/home/james/.bazaar/plugins/keywords/keywords.py", line 53, in <lambda>
      lambda c: c.revision_id())
    File "/usr/lib/python2.6/dist-packages/bzrlib/filters/__init__.py", line 115, in revision_id
      self._entry = self._tree.inventory[file_id]
    File "/usr/lib/python2.6/dist-packages/bzrlib/transform.py", line 1836, in inventory
      raise NotImplementedError(_PreviewTree.inventory)
  NotImplementedError: <property object at 0xa57aaa4>

  ___________________________

  Problem is caused by the keywords plugin (lp:bzr-keywords). I worked
  around this bug by doing the following:

    mv ~/.bazaar/plugins/keywords/ ~
    bzr unshelve 1
    mv ~/keywords ~/.bazaar/plugins/

  ProblemType: Crash
  DistroRelease: Ubuntu 10.10
  Package: bzr 2.2.1-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.35-28.49-generic-pae 2.6.35.11
  Uname: Linux 2.6.35-28-generic-pae i686
  NonfreeKernelModules: nvidia
  Architecture: i386
  BzrDebugFlags: set()
  BzrVersion: 2.2.1
  CommandLine: ['/usr/bin/bzr', 'unshelve', '1']
  CrashDb: bzr
  Date: Thu Mar 31 09:28:43 2011
  ExecutablePath: /usr/bin/bzr
  FileSystemEncoding: UTF-8
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
  InterpreterPath: /usr/bin/python2.6
  Locale: en_GB.utf8
  Platform: Linux-2.6.35-28-generic-pae-i686-with-Ubuntu-10.10-maverick
  ProcCmdline: /usr/bin/python /usr/bin/bzr unshelve 1
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, user)
   LANG=en_GB.utf8
  PythonVersion: 2.6.6
  SourcePackage: bzr
  Title: bzr crashed with NotImplementedError in inventory()
  UserEncoding: UTF-8
  UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare sbuild

To manage notifications about this bug go to:
https://bugs.launchpad.net/brz/+bug/746289/+subscriptions



More information about the foundations-bugs mailing list