Mercurial > hg
annotate tests/test-parseindex2.py.out @ 18406:20cf53932b6f
hgweb: simplify the handling of empty repo
This abstraction have two advantages:
- If the revlog is empty, None of the code bellow is relevant,
early returns seems a win.
- Abtraction of the 'emptiness' check will help later when we stop relying on
nodefunc.
A bonus, with filtering, a non-empty revlog may not have '0' revision
accessible. It'll be easier to handle with the emptiness test in a dedicated
function
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 14 Jan 2013 16:30:06 +0100 |
parents | 75fdc39b6172 |
children |
rev | line source |
---|---|
7110
75fdc39b6172
Add parseindex2.py test case
Bernhard Leiner <bleiner@gmail.com>
parents:
diff
changeset
|
1 done |