equal
deleted
inserted
replaced
245 morevars['revcount'] = revcount * 2 |
245 morevars['revcount'] = revcount * 2 |
246 |
246 |
247 count = len(web.repo) |
247 count = len(web.repo) |
248 pos = ctx.rev() |
248 pos = ctx.rev() |
249 start = max(0, pos - revcount + 1) |
249 start = max(0, pos - revcount + 1) |
250 end = min(count, start + revcount) |
250 end = pos + 1 |
251 pos = end - 1 |
|
252 parity = paritygen(web.stripecount, offset=start - end) |
251 parity = paritygen(web.stripecount, offset=start - end) |
253 |
252 |
254 changenav = webutil.revnav(web.repo).gen(pos, revcount, count) |
253 changenav = webutil.revnav(web.repo).gen(pos, revcount, count) |
255 |
254 |
256 return tmpl(shortlog and 'shortlog' or 'changelog', changenav=changenav, |
255 return tmpl(shortlog and 'shortlog' or 'changelog', changenav=changenav, |