Show More
@@ -308,17 +308,17 b' class hgwebdir(object):' | |||||
308 |
|
308 | |||
309 | # add '/' to the name to make it obvious that |
|
309 | # add '/' to the name to make it obvious that | |
310 | # the entry is a directory, not a regular repository |
|
310 | # the entry is a directory, not a regular repository | |
311 |
row = |
|
311 | row = {'contact': "", | |
312 |
|
|
312 | 'contact_sort': "", | |
313 |
|
|
313 | 'name': name + '/', | |
314 |
|
|
314 | 'name_sort': name, | |
315 |
|
|
315 | 'url': url, | |
316 |
|
|
316 | 'description': "", | |
317 |
|
|
317 | 'description_sort': "", | |
318 |
|
|
318 | 'lastchange': d, | |
319 |
|
|
319 | 'lastchange_sort': d[1]-d[0], | |
320 |
|
|
320 | 'archives': [], | |
321 |
|
|
321 | 'isdirectory': True} | |
322 |
|
322 | |||
323 | seendirs.add(name) |
|
323 | seendirs.add(name) | |
324 | yield row |
|
324 | yield row | |
@@ -356,17 +356,18 b' class hgwebdir(object):' | |||||
356 | contact = get_contact(get) |
|
356 | contact = get_contact(get) | |
357 | description = get("web", "description", "") |
|
357 | description = get("web", "description", "") | |
358 | name = get("web", "name", name) |
|
358 | name = get("web", "name", name) | |
359 |
row = |
|
359 | row = {'contact': contact or "unknown", | |
360 |
|
|
360 | 'contact_sort': contact.upper() or "unknown", | |
361 |
|
|
361 | 'name': name, | |
362 |
|
|
362 | 'name_sort': name, | |
363 |
|
|
363 | 'url': url, | |
364 |
|
|
364 | 'description': description or "unknown", | |
365 |
|
|
365 | 'description_sort': description.upper() or "unknown", | |
366 |
|
|
366 | 'lastchange': d, | |
367 |
|
|
367 | 'lastchange_sort': d[1]-d[0], | |
368 |
|
|
368 | 'archives': archivelist(u, "tip", url), | |
369 |
|
|
369 | 'isdirectory': None, | |
|
370 | } | |||
370 |
|
371 | |||
371 | seenrepos.add(name) |
|
372 | seenrepos.add(name) | |
372 | yield row |
|
373 | yield row |
General Comments 0
You need to be logged in to leave comments.
Login now