bzr undelete does not work with bzr 2.4

Bug #828825 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-undelete
Confirmed
Undecided
Unassigned

Bug Description

C:\work\>bzr undelete foo.c
bzr: ERROR: exceptions.TypeError: __init__() takes exactly 3 arguments (4 given)

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "C:\work\Bazaar\plugins\undelete\__init__.py", line 80, in run
  File "bzrlib\lazy_import.pyo", line 129, in __call__
  File "C:\work\Bazaar\plugins\undelete\undelete.py", line 72, in _undelete_file
TypeError: __init__() takes exactly 3 arguments (4 given)

bzr 2.4b5 on python 2.6.6 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'undelete', 'bitbang.c']
plugins: acad[0.8.0], bzrtools[2.4.0], changelog_merge[2.4b5], colo[0.3.1dev],
    explorer[1.1.4], find_branches[unknown], format1[unknown],
    launchpad[2.4b5], qbzr[0.21.2dev], rewrite[0.7.0dev], scmproj[0.6.2dev],
    undelete[0.2.0], x_bit[1.0.0]
encoding: 'cp1251', fsenc: 'mbcs', lang: None

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

In bzr 2.4 (and bzr trunk) you should use InventoryRevisionTree instead of RevisionTree.

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote :

The fix available in the branch lp:~bialix/bzr-undelete/2.4

Changed in bzr-undelete:
status: New → Confirmed
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.