Mercurial > hg
comparison mercurial/templatekw.py @ 19093:6f27efc7db23 stable
hgweb: fix empty navigation detection
For some obscure reason, changelog.node(0) returns nullid if changelog is empty.
this break empty navigation detection. We fix this code by using the length of
the changelog.
Using the length have some issue with revision filtering but this is a small
step in the right direction. Proper fix comes in later changeset.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Tue, 30 Apr 2013 15:11:12 +0200 |
parents | 3cdb6f2f6789 |
children | ad27cdacc743 faa4b3fc4197 |
comparison
equal
deleted
inserted
replaced
19092:8c560ad1cdc4 | 19093:6f27efc7db23 |
---|