'Mark as rename' broken

Bug #620433 reported by Andreas Sommer
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
High
Alexander Belchenko

Bug Description

I get the following error when marking two files as a rename (Windows 7, Bazaar 2.2.0):

bzr: ERROR: exceptions.TypeError: list indices must be integers, not ModelItemData

Traceback (most recent call last):
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\treewidget.py", line 2026, in mark_move
TypeError: list indices must be integers, not ModelItemData

This can be fixed by replacing line 2026

self.tree_model.inventory_data[new], False))

with the following

new, False))

I don't know if this fix is correct, but it seems to work.

Related branches

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

With bzr 2.1.2 and qbzr 0.19 I have error dialog with following traceback:

bzr: ERROR: exceptions.TypeError: list indices must be integers

Traceback (most recent call last):
  File "C:\work\Bazaar\plugins\qbzr\lib\treewidget.py", line 2026, in mark_move
TypeError: list indices must be integers

bzr 2.1.2 on python 2.5.4 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'qbw']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
  acad C:\work\Bazaar\plugins\acad [0.8.0]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.1.0]
  colo C:\work\Bazaar\plugins\colo [0.2.0dev]
  explorer C:\work\Bazaar\plugins\explorer [1.1.0dev2]
  format1 C:\work\Bazaar\plugins\format1 [unknown]
  kftp C:\work\Bazaar\plugins\kftp [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.1.2]
  qbzr C:\work\Bazaar\plugins\qbzr [0.19.1dev]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.5]
  scmproj C:\work\Bazaar\plugins\scmproj [0.6.1]
  x_bit C:\work\Bazaar\plugins\x_bit [1.0.0]

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

@AndiDog: your suggested fix is correct. Thank you.

Changed in qbzr:
status: New → Confirmed
importance: Undecided → High
milestone: none → 0.19.1
assignee: nobody → Alexander Belchenko (bialix)
status: Confirmed → In Progress
Changed in qbzr:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.