hooks command crashes in InfoHooks section

Bug #404549 reported by Alan Staniforth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

Got the following crash when I ran 'bzr hooks'

]$ bzr hooks
BranchHooks:
  open:
    <no hooks installed>
  post_change_branch_tip:
    index
    Auto upload code from a branch when it is changed.
    bzr-email
  post_commit:
    bzr-email
  post_pull:
    <no hooks installed>
  post_push:
    <no hooks installed>
  post_uncommit:
    Remember uncomitted message for qcommit
  pre_change_branch_tip:
    <no hooks installed>
  pre_commit:
    <no hooks installed>
  set_rh:
    <no hooks installed>
  transform_fallback_location:
    <no hooks installed>
BzrDirHooks:
  pre_open:
    <no hooks installed>
CommandHooks:
  extend_command:
    <no hooks installed>
  get_command:
    bzr commands
    bzr plugin commands
    bzr external command lookup
  get_missing_command:
    bzr plugin-provider-db check
  list_commands:
    bzr commands
InfoHooks:
  repository:
bzr: ERROR: exceptions.AttributeError: 'InfoHooks' object has no attribute '_callable_names'

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 5513, in run
    (some_hooks.get_hook_name(hook),))
  File "/Library/Python/2.5/site-packages/bzrlib/hooks.py", line 147, in get_hook_name
    return self._callable_names.get(a_callable, "No hook name")
AttributeError: 'InfoHooks' object has no attribute '_callable_names'

bzr 1.17 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'hooks']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'
plugins:
  bzr_difftools /Library/Python/2.5/site-packages/bzrlib/plugins/bzr_difftools [unknown]
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.16]
  email /Library/Python/2.5/site-packages/bzrlib/plugins/email [unknown]
  extmerge /Library/Python/2.5/site-packages/bzrlib/plugins/extmerge [unknown]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [1.17]
  loom /Library/Python/2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /Library/Python/2.5/site-packages/bzrlib/plugins/netrc_credential_store [1.17]
  qbzr /Library/Python/2.5/site-packages/bzrlib/plugins/qbzr [0.12]
  rebase /Library/Python/2.5/site-packages/bzrlib/plugins/rebase [0.5.4dev]
  search /Library/Python/2.5/site-packages/bzrlib/plugins/search [1.7dev]
  svn /Library/Python/2.5/site-packages/bzrlib/plugins/svn [0.6.3]
  upload /Library/Python/2.5/site-packages/bzrlib/plugins/upload [1.0dev]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
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.