qconflicts fails to list conflicts when there are 50+ of type "Conflict adding file"
Bug #338765 reported by
Craig Hewetson
This bug report is a duplicate of:
Bug #655451: Crash in qconflicts when there is conflict in non-versioned file (TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type).
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When trying to open qconflicts with 50+ conflicts (of type "Conflict adding file")
I get the following exception in dialog. The result is that the conflicts table is empty.
Here is the stack trace from the dialog:
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
item.setData(0, QtCore.Qt.UserRole, QtCore.
TypeError: argument 1 of QVariant() has an invalid type
...
Is this type of conflict supported or is it just the number of conflicts.
To post a comment you must log in.
Can you provide more info about this issue? What type of conflict exactly?
If this conflict about adding file when there is already such filename exists and non-versioned, I suspect conflict.file_id will be None and this can explain why qbzr fails.
Possible fix is:
item.setData(0, QtCore.Qt.UserRole, QtCore. QVariant( conflict. file_id or ""))