Mercurial > kallithea
comparison rhodecode/lib/celerylib/tasks.py @ 635:fd63782c4426 beta
Fixed age, for new vcs implementation. Removed all obsolete date formatters
Added simplegit middleware.
fixed deps
added scm type icon to main page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 25 Oct 2010 03:19:01 +0200 |
parents | 05528ad948c4 |
children | 758f64f3fbda |
comparison
equal
deleted
inserted
replaced
634:0d18cf02278a | 635:fd63782c4426 |
---|---|
99 | 99 |
100 commits_by_day_author_aggregate = {} | 100 commits_by_day_author_aggregate = {} |
101 commits_by_day_aggregate = {} | 101 commits_by_day_aggregate = {} |
102 repos_path = get_hg_ui_settings()['paths_root_path'] | 102 repos_path = get_hg_ui_settings()['paths_root_path'] |
103 p = os.path.join(repos_path, repo_name) | 103 p = os.path.join(repos_path, repo_name) |
104 repo = get_repo(get_scm(p)[0], p) | 104 repo = get_repo(p) |
105 | 105 |
106 skip_date_limit = True | 106 skip_date_limit = True |
107 parse_limit = 250 #limit for single task changeset parsing optimal for | 107 parse_limit = 250 #limit for single task changeset parsing optimal for |
108 last_rev = 0 | 108 last_rev = 0 |
109 last_cs = None | 109 last_cs = None |
310 's', 'sh', 'tpl', 'txt', 'vim', 'wss', 'xhtml', 'xml', 'xsl', 'xslt', 'yaws'] | 310 's', 'sh', 'tpl', 'txt', 'vim', 'wss', 'xhtml', 'xml', 'xsl', 'xslt', 'yaws'] |
311 | 311 |
312 | 312 |
313 repos_path = get_hg_ui_settings()['paths_root_path'] | 313 repos_path = get_hg_ui_settings()['paths_root_path'] |
314 p = os.path.join(repos_path, repo_name) | 314 p = os.path.join(repos_path, repo_name) |
315 repo = get_repo(get_scm(p)[0], p) | 315 repo = get_repo(p) |
316 | |
317 tip = repo.get_changeset() | 316 tip = repo.get_changeset() |
318 | |
319 code_stats = {} | 317 code_stats = {} |
320 | 318 |
321 def aggregate(cs): | 319 def aggregate(cs): |
322 for f in cs[2]: | 320 for f in cs[2]: |
323 k = f.mimetype | 321 k = f.mimetype |