When I type "bzr qdiffstat" I get an error (full traceback below). "bzr diffstat" works fine.
I am using bzr-diffstat trunk r24 with Bazaar 2.2.2 and qbzr 0.19.2 on OS X 10.6.5.
This can be reproduced with an empty branch, i.e.:
bzr init branch
cd branch
bzr qdiffstat
Perhaps this was caused by a bzr API change?
bzr: ERROR: exceptions.AttributeError: 'cmd_diff' object has no attribute '_operation'
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/qbzr/lib/trace.py", line 300, in reports_exception_decorate
return f(*args, **kargs)
File "/Users/francis/.bazaar/plugins/diffstat/qdiffstat.py", line 68, in initial_load
self.do_refresh()
File "/Users/francis/.bazaar/plugins/diffstat/qdiffstat.py", line 74, in do_refresh
**self.diff_kwargs)
File "/Users/francis/.bazaar/plugins/diffstat/__init__.py", line 55, in _run_diff_wrapped
retval = diff_class.run(self, *args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 1127, in ignore_pipe
result = func(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/builtins.py", line 1972, in run
file_list, revision, old, new, self.add_cleanup, apply_view=True)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/diff.py", line 398, in get_trees_and_branches_to_diff_locked
lock_tree_or_branch(working_tree, branch)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/diff.py", line 387, in lock_tree_or_branch
add_cleanup(wt.unlock)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 426, in add_cleanup
self._operation.add_cleanup(cleanup_func, *args, **kwargs)
AttributeError: 'cmd_diff' object has no attribute '_operation'
bzr 2.2.2 on python 2.6.6 (darwin)
arguments: ['/opt/local/bin/bzr', 'qdiffstat']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'
plugins:
bash_completion /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/bash_completion [2.2.2]
bzrtools /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/bzrtools [2.2.0]
diffstat /Users/francis/.bazaar/plugins/diffstat [0.2.0]
explorer /Users/francis/.bazaar/plugins/explorer [1.0.0]
grep /Users/francis/.bazaar/plugins/grep [0.5.0dev]
launchpad /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/launchpad [2.2.2]
netrc_credential_store /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.2.2]
news_merge /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/news_merge [2.2.2]
qbzr /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/qbzr [0.19.2]
rewrite /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/rewrite [0.6.1]
search /Users/francis/.bazaar/plugins/search [1.7.0dev]
svn /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/svn [1.0.4]
xmloutput /Users/francis/.bazaar/plugins/xmloutput [0.8.7.dev]