[Bug?] `bzr log -rX.Y.Z filename` fails

Alexander Belchenko bialix at ukr.net
Thu Oct 4 10:58:51 BST 2007


Kent Gibson пишет:
> Alexander Belchenko wrote:
>> I look at annotate output and want to see log for some revision.
>>
>> $ bzr ann test_plugins.py ... 2804.4.1
>> bialix at ukr.net                  20070906 |
>> self.assertEqual(plugin_path, normpath(plugin.path())) ...
>>
> Hi Alexander,
> 
> Firstly, that log works for me with bzr.dev:
> 
> - ------------------------------------------------------------
> revno: 2804.4.1
> committer: Alexander Belchenko <bialix at ukr.net>
> branch nick: selftest.win32
> timestamp: Thu 2007-09-06 14:59:59 +0300
> message:
>   some win32-specific fixes for selftest
> 
> Your error can occur if the revision has been somehow filtered from
> your view.
> If it doesn't exist in the view you get an error like this:
> $ bzr log -r1.2.3
> 
> bzr: ERROR: Requested revision: u'1.2.3' does not exist in branch:
> BzrBranch5('file:///home/kent/work/bzr/bzr.dev/')
> 
> I can replicate your error if I add a formatter that ignores merge
> revisions, such as --short:
> 
> $ bzr log --short -r2804.4.1
> bzr: ERROR: exceptions.ValueError: list.index(x): x not in list
> ....
> 
> That should certainly be handled better than a traceback....
> 
> You don't happen to have an alias do you?

No, it's not alias, I have settings
log_format=short
for all my bzr.dev branches. I forget about it.
So it's indeed my case. Thank you. I'll file bug report.



More information about the bazaar mailing list