Show More
@@ -35,6 +35,7 b' from .. import (' | |||
|
35 | 35 | pycompat, |
|
36 | 36 | scmutil, |
|
37 | 37 | templater, |
|
38 | templateutil, | |
|
38 | 39 | ui as uimod, |
|
39 | 40 | util, |
|
40 | 41 | ) |
@@ -246,9 +247,8 b' def rawindexentries(ui, repos, req, subd' | |||
|
246 | 247 | |
|
247 | 248 | yield row |
|
248 | 249 | |
|
249 |
def indexentries(ui, repos, req, stripecount, sortcolumn |
|
|
250 |
descending |
|
|
251 | ||
|
250 | def _indexentriesgen(context, ui, repos, req, stripecount, sortcolumn, | |
|
251 | descending, subdir): | |
|
252 | 252 | rows = rawindexentries(ui, repos, req, subdir=subdir) |
|
253 | 253 | |
|
254 | 254 | sortdefault = None, False |
@@ -262,6 +262,11 b' def indexentries(ui, repos, req, stripec' | |||
|
262 | 262 | row['parity'] = parity |
|
263 | 263 | yield row |
|
264 | 264 | |
|
265 | def indexentries(ui, repos, req, stripecount, sortcolumn='', | |
|
266 | descending=False, subdir=''): | |
|
267 | args = (ui, repos, req, stripecount, sortcolumn, descending, subdir) | |
|
268 | return templateutil.mappinggenerator(_indexentriesgen, args=args) | |
|
269 | ||
|
265 | 270 | class hgwebdir(object): |
|
266 | 271 | """HTTP server for multiple repositories. |
|
267 | 272 |
General Comments 0
You need to be logged in to leave comments.
Login now