Error or trying to read merges

Scott Aubrey scottaubrey at capuk.org
Thu Sep 17 17:31:28 BST 2009


Hello everyone

I've come across this error with my current bazaar setup!

I'm getting this error when running bzr log -n0 on any of my branches  
that have merges in (including a branch of bzr and using lp:bzr):

 > bzr log -n0 lp:bzr/2.0
bzr: ERROR: exceptions.AttributeError: '_known_graph_pyx.KnownGraph'  
object has no attribute 'merge_sort'

Traceback (most recent call last):
   File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line  
842, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line  
1037, in run_bzr
     ret = run(*run_argv)
   File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line  
654, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line  
1052, in ignore_pipe
     result = func(*args, **kwargs)
   File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line  
2354, in run
     Logger(b, rqst).show(lf)
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 330,  
in show
     self._show_body(lf)
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 354,  
in _show_body
     for lr in generator.iter_log_revisions():
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 389,  
in iter_log_revisions
     for revs in revision_iterator:
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 871,  
in _make_revision_objects
     for revs in log_rev_iterator:
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 896,  
in _make_batch_filter
     step = [detail for _, detail in zip(range(num), batch)]
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 725,  
in _convert
     for view in view_revisions:
   File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 648,  
in _graph_view_revisions
     stop_rule="with-merges")
   File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line  
138, in read_locked
     result = unbound(self, *args, **kwargs)
   File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line  
452, in iter_merge_sorted_revisions
     self._merge_sorted_revisions_cache = known_graph.merge_sort(
AttributeError: '_known_graph_pyx.KnownGraph' object has no attribute  
'merge_sort'

bzr 2.0rc2 on python 2.6.1 (Darwin-10.0.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'log', '-n0', 'lp:bzr/2.0']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'
plugins:
   cap                  /Users/scottaubrey/.bazaar/plugins/cap [unknown]
   explorer             /Users/scottaubrey/.bazaar/plugins/explorer  
[0.8]
   launchpad            /Library/Python/2.6/site-packages/bzrlib/ 
plugins/launchpad [2.0rc2]
   netrc_credential_store /Library/Python/2.6/site-packages/bzrlib/ 
plugins/netrc_credential_store [2.0rc2]
   qbzr                 /Users/scottaubrey/.bazaar/plugins/qbzr  
[0.15dev]
   svn                  /Users/scottaubrey/.bazaar/plugins/svn [1.0dev]

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



I was running a combination of 2.1dev (lp:bzr) on my snow leopard  
laptop, and 2.0rc2 on the server. I thought this much newer client  
version might be causing the issue, so i use lp:bzr/2.0 and did a  
python setup.py install over the top, but I still have the same issue.

 > bzr version
Bazaar (bzr) 2.0rc2
   Python interpreter: /usr/bin/python 2.6.1
   Python standard library: /System/Library/Frameworks/ 
Python.framework/Versions/2.6/lib/python2.6
   Platform: Darwin-10.0.0-i386-64bit
   bzrlib: /Library/Python/2.6/site-packages/bzrlib
   Bazaar configuration: /Users/scottaubrey/.bazaar
   Bazaar log file: /Users/scottaubrey/.bzr.log

Can anyone let me know what's going on? Have a royally screwed it up?

- Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090917/e5be85e7/attachment-0002.htm 


More information about the bazaar mailing list