bzr: ERROR: exceptions.TypeError: unbound method run() must be called with cmd_diff instance as first argument (got cmd_diff instance instead)

Bug #259970 reported by Reinhard Tartler
2
Affects Status Importance Assigned to Milestone
Bazaar Diffstat Plugin
New
Undecided
Unassigned

Bug Description

bzr: ERROR: exceptions.TypeError: unbound method run() must be called with cmd_diff instance as first argument (got cmd_diff instance instead)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/siretart/.bazaar/plugins/diffstat/__init__.py", line 73, in run
    revision=revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/siretart/.bazaar/plugins/diffstat/__init__.py", line 47, in run
    retval = diff_class.run(self, *args, **kwargs)
TypeError: unbound method run() must be called with cmd_diff instance as first argument (got cmd_diff instance instead)

Revision history for this message
Reinhard Tartler (siretart) wrote :

This is with bzr 1.6rc5

this was introduces with revision 18, reverting to revision 17 makes the diffstat plugin work for me.

Revision history for this message
Reinhard Tartler (siretart) wrote :

------------------------------------------------------------
revno: 18
committer: Russ Brown <email address hidden>
branch nick: trunk
timestamp: Thu 2008-07-31 23:04:46 -0500
message:
  Merged code duplication removal branch
    ------------------------------------------------------------
    revno: 17.1.1
    committer: Russ Brown <email address hidden>
    branch nick: remove_duplication
    timestamp: Thu 2008-07-31 23:02:39 -0500
    message:
      Almost completely eliminated class cmd_diffstat

      The diffstat command still exists with all options, but its functionality
      now delegates to the cmd_diff subclass instead, meaning we now have one
      codepath for this plugin regardless of whether the user comes in via diffstat
      or diff --stat.
------------------------------------------------------------

Revision history for this message
Reinhard Tartler (siretart) wrote :

On further investigation, it seems to plugins does totally confuse the diff command. Is it intended to be used with bzr 1.6 at all?

Revision history for this message
Russ Brown (pickscrape) wrote :

Yes, I'm using it right now with 1.6 rc5 with no problems.

Could you give a little more information: what command did you run to make this happen, what python version are you running, and a list of other plugins that you have installed (could be a bad plugin interaction).

Thanks!

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.