Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 37698:7738ae638b62
hgweb: wrap {changenav} and {nav} with mappinglist
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Apr 2018 23:40:08 +0900 |
parents | f83cb91b052e |
children | 2095331ff926 |
comparison
equal
deleted
inserted
replaced
37697:6fb50e912aa8 | 37698:7738ae638b62 |
---|---|
1082 linerange = None | 1082 linerange = None |
1083 if lrange is not None: | 1083 if lrange is not None: |
1084 linerange = webutil.formatlinerange(*lrange) | 1084 linerange = webutil.formatlinerange(*lrange) |
1085 # deactivate numeric nav links when linerange is specified as this | 1085 # deactivate numeric nav links when linerange is specified as this |
1086 # would required a dedicated "revnav" class | 1086 # would required a dedicated "revnav" class |
1087 nav = [] | 1087 nav = templateutil.mappinglist([]) |
1088 if descend: | 1088 if descend: |
1089 it = dagop.blockdescendants(fctx, *lrange) | 1089 it = dagop.blockdescendants(fctx, *lrange) |
1090 else: | 1090 else: |
1091 it = dagop.blockancestors(fctx, *lrange) | 1091 it = dagop.blockancestors(fctx, *lrange) |
1092 for i, (c, lr) in enumerate(it, 1): | 1092 for i, (c, lr) in enumerate(it, 1): |