Internal error is shown when using "branch-history" command -- bzr: ERROR: exceptions.AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

Bug #1496271 reported by Kevin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
BzrTools
New
Undecided
Unassigned

Bug Description

Trying to view the branch history using the bzrtools "branch-history" command against the trunk branch causes an internal error.
Traceback is below --

bzr: ERROR: exceptions.AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 930, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1141, in run_bzr
  File "C:/Program Files (x86)/Bazaar/plugins\bzrtools\command.py", line 40, in run_argv_aliases
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 697, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "C:/Program Files (x86)/Bazaar/plugins\bzrtools\command_classes.py", line 359, in run
  File "C:/Program Files (x86)/Bazaar/plugins\bzrtools\branchhistory.py", line 12, in branch_history
  File "C:/Program Files (x86)/Bazaar/plugins\bzrtools\branchhistory.py", line 53, in iter_revisiondata
AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

bzr 2.6b1 on python 2.6.6 (Windows-post2008Server-6.2.9200)
arguments: ['bzr', 'branch-history', 'trunk']
plugins: bzrtools[2.5.0], changelog_merge[2.6b1], colo[0.4.0],
    explorer[1.3.0dev], fastimport[0.14.0dev], launchpad[2.6b1],
    loom[2.3.0dev], netrc_credential_store[2.6b1], news_merge[2.6b1],
    pipeline[1.4.0], qbzr[0.23.0dev], rewrite[0.6.4dev], upload[1.2.0dev],
    xmloutput[0.8.8]
encoding: 'cp1252', fsenc: 'mbcs', lang: None

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

Vincent Ladeuil (vila)
affects: bzr → bzrtools
Revision history for this message
B. Clausius (barcc) wrote :

Same on Ubuntu 16.10 and Ubuntu 16.04 with bzr branch lp:pybik,
error message:

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.8.0dev1 on python 2.7.12 (Linux-4.8.0-32-generic-x86_64-with-
    Ubuntu-16.10-yakkety)
arguments: ['/usr/bin/bzr', 'branch-history']
plugins: bash_completion[2.8.0dev1], bc_commit_hook_copyright_year[unknown],
    bcspaces[unknown], builddeb[2.8.6], bzrtools[2.6.0],
    changelog_merge[2.8.0dev1], diffstat[0.2.0], grep[2.8.0dev1],
    launchpad[2.8.0dev1], netrc_credential_store[2.8.0dev1],
    news_merge[2.8.0dev1], po_merge[2.8.0dev1], weave_fmt[2.8.0dev1],
    xmloutput[0.8.8]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'

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

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.