AttributeError: 'HgBzrDirFormat' object has no attribute '_workingtree_format'

Bug #319784 reported by Wesley J. Landaker
2
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Fix Released
Critical
Jelmer Vernooij

Bug Description

I know bzr-hg isn't super mature, but just trying to branch a local hg repository, I get this error with the latest bzr 1.12dev, which prevents even trying it:

$ bzr branch upstream-hg/ upstream-bzr
*** failed to import extension hgext.inotify: 'module' object has no attribute 'inotify'
bzr: ERROR: exceptions.AttributeError: 'HgBzrDirFormat' object has no attribute '_workingtree_format'

Traceback (most recent call last):
  File "/home/wjlanda/lib/python/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/wjlanda/lib/python/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/wjlanda/lib/python/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/wjlanda/lib/python/bzrlib/builtins.py", line 1043, in run
    source_branch=br_from)
  File "/home/wjlanda/lib/python/bzrlib/bzrdir.py", line 1088, in sprout
    cloning_format = self.cloning_metadir(stacked)
  File "/home/wjlanda/lib/python/bzrlib/bzrdir.py", line 1049, in cloning_metadir
    if format._workingtree_format is None:
AttributeError: 'HgBzrDirFormat' object has no attribute '_workingtree_format'

bzr 1.12dev on python 2.5.2 (linux2)
arguments: ['/home/wjlanda/bin/bzr', 'branch', 'upstream-hg/', 'upstream-bzr']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bisect /home/wjlanda/.bazaar/plugins/bisect [1.1.0.pre.0]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.11]
  cvsps_import /usr/lib/python2.5/site-packages/bzrlib/plugins/cvsps_import [unknown]
  gtk /home/wjlanda/.bazaar/plugins/gtk [0.96.0.dev.1]
  hg /home/wjlanda/.bazaar/plugins/hg [unknown]
  launchpad /home/wjlanda/lib/python/bzrlib/plugins/launchpad [unknown]
  loom /usr/lib/python2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /home/wjlanda/lib/python/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /home/wjlanda/.bazaar/plugins/qbzr [0.9.7dev]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.4.2]
  search /usr/lib/python2.5/site-packages/bzrlib/plugins/search [1.7dev]
  stats /usr/lib/python2.5/site-packages/bzrlib/plugins/stats [unknown]
  svn /home/wjlanda/.bazaar/plugins/svn [0.5rc1]
  upload /usr/lib/python2.5/site-packages/bzrlib/plugins/upload [0.1]
*** 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.

Related branches

Revision history for this message
Martin Pool (mbp) wrote :

It looks like this is either an api break in bzr (if it now requires that member) or a bug in bzg-hg.

Changed in bzr-hg:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

fixed in trunk

Changed in bzr-hg:
assignee: nobody → jelmer
status: Confirmed → Fix Released
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.