bzrtools and qbzr gets this error while executing diff command

Bug #1865136 reported by Nikhil on 2020-02-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

dev@dev-VirtualBox:~/Desktop/myproject$ bzr branch-history
bzr: ERROR: exceptions.AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools/command_classes.py", line 359, in run
    return branch_history(branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools/branchhistory.py", line 12, in branch_history
    for revno, revision in iter_revisiondata(b):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools/branchhistory.py", line 53, in iter_revisiondata
    for no, revision_id in enumerate(branch.revision_history()):
AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

bzr 2.7.0dev1 on python 2.7.6 (Linux-3.16.0-77-generic-x86_64-with-
    Ubuntu-14.04-trusty)
arguments: ['/usr/bin/bzr', 'branch-history']
plugins: bash_completion[2.7.0dev1], bzrtools[2.6.0],
    changelog_merge[2.7.0dev1], explorer[1.3.0], grep[2.7.0dev1],
    launchpad[2.7.0dev1], netrc_credential_store[2.7.0dev1],
    news_merge[2.7.0dev1], po_merge[2.7.0dev1], qbzr[0.23.1],
    weave_fmt[2.7.0dev1]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_IN'

*** 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.

~/.bzr.log content

0.233 Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools/command_classes.py", line 359, in run
    return branch_history(branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools/branchhistory.py", line 12, in branch_history
    for revno, revision in iter_revisiondata(b):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools/branchhistory.py", line 53, in iter_revisiondata
    for no, revision_id in enumerate(branch.revision_history()):
AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

0.235 couldn't find apport bug-reporting library: No module named apport
0.250 return code 4

bzr --version

Bazaar (bzr) 2.7.0dev1
  Python interpreter: /usr/bin/python 2.7.6
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.16.0-77-generic-x86_64-with-Ubuntu-14.04-trusty
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/dev/.bazaar
  Bazaar log file: /home/dev/.bzr.log

Copyright 2005-2012 Canonical Ltd.
http://bazaar.canonical.com/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

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

Other bug subscribers