'HgRepository' object has no attribute '_fallback_repositories'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Hg Plugin |
Fix Released
|
High
|
Jelmer Vernooij |
Bug Description
I've been trying to use bzr-hg with bzr 1.10 and python 2.4.4. I've tried with hg 0.94 and 1.1.1 with the same results. I did:
$ bzr init
$ bzr pull /home/oojah/
It crashes like this:
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
possible_
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
possible_
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
_override_
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
graph=graph)
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
self.
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
pb=nested_pb)
File "/home/
find_
File "/home/
self.
File "/home/
self.
File "/home/
lock_source()
File "/home/
for repo in self._fallback_
AttributeError: 'HgRepository' object has no attribute '_fallback_
bzr 1.10 on python 2.4.4 (linux2)
arguments: ['/home/
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
hg /home/oojah/
launchpad /home/oojah/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Related branches
Changed in bzr-hg: | |
status: | Confirmed → Fix Committed |
Changed in bzr-hg: | |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Thanks for the report; I think this is failing because bzr-hg is out of date with bzr.dev.
_fallback_ repositories is defined in Repository.__init__ and so should be expected to be provided by subclasses. Possibly it should be in the ForeignRepository base and bzr-hg should use that.
To work around this problem you can: add this line
_fallback_ repositories = []
into the Repository subclass in bzr-hg.