Mercurial > kallithea
comparison rhodecode/lib/helpers.py @ 864:cef384882e81 beta
Proper fix for number of changesets in journal
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 18 Dec 2010 17:13:10 +0100 |
parents | e81636a261cf |
children | 4f89f5f078f8 d65843e07d3c |
comparison
equal
deleted
inserted
replaced
862:4bdd0bf1b1f4 | 864:cef384882e81 |
---|---|
422 if len(x) > 1: | 422 if len(x) > 1: |
423 action, action_params = x | 423 action, action_params = x |
424 | 424 |
425 def get_cs_links(): | 425 def get_cs_links(): |
426 if action == 'push': | 426 if action == 'push': |
427 revs_limit = 1000 | 427 revs_limit = 5 |
428 revs = action_params.split(',') | 428 revs = action_params.split(',') |
429 cs_links = " " + ', '.join ([link(rev, | 429 cs_links = " " + ', '.join ([link(rev, |
430 url('changeset_home', | 430 url('changeset_home', |
431 repo_name=user_log.repository.repo_name, | 431 repo_name=user_log.repository.repo_name, |
432 revision=rev)) for rev in revs[:revs_limit] ]) | 432 revision=rev)) for rev in revs[:revs_limit] ]) |
441 | 441 |
442 html_tmpl = '<span id="%s" style="display:none"> %s </span>' | 442 html_tmpl = '<span id="%s" style="display:none"> %s </span>' |
443 cs_links += html_tmpl % (uniq_id, ', '.join([link(rev, | 443 cs_links += html_tmpl % (uniq_id, ', '.join([link(rev, |
444 url('changeset_home', | 444 url('changeset_home', |
445 repo_name=user_log.repository.repo_name, | 445 repo_name=user_log.repository.repo_name, |
446 revision=rev)) for rev in revs[:revs_limit] ])) | 446 revision=rev)) for rev in revs[revs_limit:] ])) |
447 | 447 |
448 return cs_links | 448 return cs_links |
449 return '' | 449 return '' |
450 | 450 |
451 def get_fork_name(): | 451 def get_fork_name(): |