Mercurial > hg
comparison mercurial/hgweb/webutil.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | 1b1a9038a71a |
comparison
equal
deleted
inserted
replaced
10281:e7d3b509af8b | 10282:08a0f04b56bd |
---|---|
57 def f(**map): | 57 def f(**map): |
58 for label, node in l: | 58 for label, node in l: |
59 yield {"label": label, "node": node} | 59 yield {"label": label, "node": node} |
60 return f | 60 return f |
61 | 61 |
62 return (dict(before=gen(navbefore), after=gen(navafter)), ) | 62 return (dict(before=gen(navbefore), after=gen(navafter)),) |
63 | 63 |
64 def _siblings(siblings=[], hiderev=None): | 64 def _siblings(siblings=[], hiderev=None): |
65 siblings = [s for s in siblings if s.node() != nullid] | 65 siblings = [s for s in siblings if s.node() != nullid] |
66 if len(siblings) == 1 and siblings[0].rev() == hiderev: | 66 if len(siblings) == 1 and siblings[0].rev() == hiderev: |
67 return | 67 return |