280 def changelist(): |
280 def changelist(): |
281 revs = [] |
281 revs = [] |
282 if pos != -1: |
282 if pos != -1: |
283 revs = web.repo.changelog.revs(pos, 0) |
283 revs = web.repo.changelog.revs(pos, 0) |
284 curcount = 0 |
284 curcount = 0 |
285 for i in revs: |
285 for rev in revs: |
286 ctx = web.repo[i] |
|
287 n = ctx.node() |
|
288 showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) |
|
289 files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles) |
|
290 |
|
291 curcount += 1 |
286 curcount += 1 |
292 if curcount > revcount + 1: |
287 if curcount > revcount + 1: |
293 break |
288 break |
294 yield {"parity": parity.next(), |
289 |
295 "author": ctx.user(), |
290 entry = webutil.changelistentry(web, web.repo[rev], tmpl) |
296 "parent": webutil.parents(ctx, i - 1), |
291 entry['parity'] = parity.next() |
297 "child": webutil.children(ctx, i + 1), |
292 yield entry |
298 "changelogtag": showtags, |
|
299 "desc": ctx.description(), |
|
300 "extra": ctx.extra(), |
|
301 "date": ctx.date(), |
|
302 "files": files, |
|
303 "rev": i, |
|
304 "node": hex(n), |
|
305 "tags": webutil.nodetagsdict(web.repo, n), |
|
306 "bookmarks": webutil.nodebookmarksdict(web.repo, n), |
|
307 "inbranch": webutil.nodeinbranch(web.repo, ctx), |
|
308 "branches": webutil.nodebranchdict(web.repo, ctx) |
|
309 } |
|
310 |
293 |
311 revcount = shortlog and web.maxshortchanges or web.maxchanges |
294 revcount = shortlog and web.maxshortchanges or web.maxchanges |
312 if 'revcount' in req.form: |
295 if 'revcount' in req.form: |
313 try: |
296 try: |
314 revcount = int(req.form.get('revcount', [revcount])[0]) |
297 revcount = int(req.form.get('revcount', [revcount])[0]) |