cleanups in revlog.lookup
- add comments
- do a clean separation of the different cases
- don't use a list of each possible node when
doing the lookup, just keep the previous entry
<item>
<title>#desc|strip|firstline|strip|escape#</title>
<link>#url#?f=#filenode|short#;file=#file|urlescape#</link>
<description><![CDATA[#desc|strip|escape|addbreaks#]]></description>
<author>#author|obfuscate#</author>
<pubDate>#date|rfc822date#</pubDate>>
</item>