Reference to undefined name 'revids_load' in log.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Fix Released
|
High
|
Alexander Belchenko |
Bug Description
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
run_
File "/home/
f(*args, **kargs)
File "/home/
r = f(*args, **kargs)
File "/home/
for revid, repo in zip(revids_load, repos)]
NameError: global name 'revids_load' is not defined
bzr 2.0.0 on python 2.6.4 (linux2)
arguments: ['/usr/bin/bzr', 'qlog', 'lp:~ubuntu-branches/ubuntu/feisty/spamassassin/feisty-backports-200911061907', 'lp:~ubuntu-branches/ubuntu/feisty/spamassassin/feisty-backports-200911061909', 'lp:~ubuntu-branches/ubuntu/feisty/spamassassin/feisty-backports']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
...
qbzr /home/maxb/
...
Looking at the file, the name revids_load is completely undefined except in this one reference. Hopefully easy to fix for someone who knows what the code is doing.
I think the right fix should be:
=== modified file 'lib/log.py'
repos_revids = [(repos[0], revids)]
else:
repos_revids = [(repo, [revid])
--- lib/log.py 2009-11-17 13:06:45 +0000
+++ lib/log.py 2009-11-19 08:55:06 +0000
@@ -485,7 +485,7 @@
- for revid, repo in zip(revids_load, repos)]
+ for revid, repo in zip(revids, repos)]
Max, I can't figure out how to reproduce this problem, so if you can test this fix, it will be nice.