qlog: Crashes when trying to revert a file to revision 1

Bug #680787 reported by David Elrom
114
This bug affects 3 people
Affects Status Importance Assigned to Milestone
QBzr
Status tracked in Trunk
0.19
Fix Released
High
Gary van der Merwe
Trunk
Fix Released
High
Gary van der Merwe

Bug Description

In qlog, if you try revert to rev 1, it crashes:

bzr: ERROR: exceptions.KeyError: 'null:'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/logwidget.py", line 479, in revert_to_revision
    self.sub_process_action(selected_branch_info, get_dialog)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/logwidget.py", line 433, in sub_process_action
    old_revno_str = gp.revid_rev[old_revid].revno_str
KeyError: 'null:'

Tags: qlog

Related branches

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

So what?

Changed in bzr-explorer:
status: New → Incomplete
Revision history for this message
David Elrom (elromulous) wrote : Re: [Bug 680787] Re: I was attempting to revert to a previous version of a file

And the application crashed. What do you mean so what?
On Nov 25, 2010 3:55 AM, "Alexander Belchenko" <email address hidden> wrote:
> So what?
>
> ** Changed in: bzr-explorer
> Status: New => Incomplete
>
> --
> I was attempting to revert to a previous version of a file
> https://bugs.launchpad.net/bugs/680787
> You received this bug notification because you are a direct subscriber
> of the bug.

Revision history for this message
David Elrom (elromulous) wrote :

In fact, on every project, it seems that reverting to revision 1 causes it
to crash.
On Nov 25, 2010 11:35 AM, "David Elrom" <email address hidden> wrote:
> And the application crashed. What do you mean so what?
> On Nov 25, 2010 3:55 AM, "Alexander Belchenko" <email address hidden> wrote:
>> So what?
>>
>> ** Changed in: bzr-explorer
>> Status: New => Incomplete
>>
>> --
>> I was attempting to revert to a previous version of a file
>> https://bugs.launchpad.net/bugs/680787
>> You received this bug notification because you are a direct subscriber
>> of the bug.

David Elrom (elromulous)
Changed in bzr-explorer:
status: Incomplete → New
Revision history for this message
Martin Pool (mbp) wrote :

On 26 November 2010 03:35, Dave <email address hidden> wrote:
> And the application crashed. What do you mean so what?

Dave, Alexander asked "so what" because you didn't actually say in the
bug report that it crashed. People file bugs about a bunch of
different things, including just being confused. It's not obvious to
us that it crashed unless you say so or attach a crash file.

Did you get an error message or a crash file? Or did it just disappear?
--
Martin

Revision history for this message
David Elrom (elromulous) wrote : Re: I was attempting to revert to a previous version of a file

My apologies for the confusion. I had clicked the bug submission link the tool shows with the error message, and assumed that it would be attaching the crash data. (i.e. that it was embedded into the link)

It seems to only happen when reverting to revision 1 (on any project I try it) and so far never otherwise.

This is what it dumped out:

bzr: ERROR: exceptions.KeyError: 'null:'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/logwidget.py", line 479, in revert_to_revision
    self.sub_process_action(selected_branch_info, get_dialog)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/logwidget.py", line 433, in sub_process_action
    old_revno_str = gp.revid_rev[old_revid].revno_str
KeyError: 'null:'

bzr 2.2.1 on python 2.6.6 (linux2)
arguments: ['/usr/bin/bzr', 'explorer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  explorer /usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer [1.1.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.1]
  qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.19.1]
  xmloutput /usr/lib/python2.6/dist-packages/bzrlib/plugins/xmloutput [0.8.6]

If there is a way to make it dump out more verbose debug info, please let me know and I'll run it again.

Thanks,
-Dave

Revision history for this message
David Elrom (elromulous) wrote :

Also perhaps worth noting, this is running on a fairly virgin (installed a day or two ago), yet up-to-date install of maverick

David Elrom (elromulous)
summary: - I was attempting to revert to a previous version of a file
+ bzr-explorer crashes when trying to revert a file to revision 1
affects: bzr-explorer → qbzr
Changed in qbzr:
importance: Undecided → Medium
status: New → Confirmed
summary: - bzr-explorer crashes when trying to revert a file to revision 1
+ qlog: Crashes when trying to revert a file to revision 1
tags: added: qlog
description: updated
Revision history for this message
Gary van der Merwe (garyvdm) wrote :

Hi Dave.

Thanks for the bug report.

I had recently fixed this in trunk (rev 1336.) I should probably backport it to 0.19.

Revision history for this message
David Elrom (elromulous) wrote :

nice. thanks.

-dave

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 680787] Re: I was attempting to revert to a previous version of a file

Dave пишет:
> My apologies for the confusion. I had clicked the bug submission link
> the tool shows with the error message, and assumed that it would be
> attaching the crash data. (i.e. that it was embedded into the link)
>
> It seems to only happen when reverting to revision 1 (on any project I
> try it) and so far never otherwise.

Please, explain the steps you did so I can try to reproduce your
problem. I'm not quite understand how you revert to revision 1.
In Bazaar Explorer there is Bazaar > Work > Revert Working Tree menu but
it does not allow you to specify a revision. What you did exactly? What
command you ran?

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.