Mercurial > public > src > rhodecode
diff pylons_app/lib/celerylib/tasks.py @ 556:b50e79b4257a
fixes to pidlock, to not raise unneded execptions
few fixes in templating for empty repository to not show some labels, fixed tag/branch switcher
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 28 Sep 2010 19:53:52 +0000 |
parents | d5efb83590ef |
children | a08f610e545e |
line wrap: on
line diff
--- a/pylons_app/lib/celerylib/tasks.py Tue Sep 28 02:31:10 2010 +0200 +++ b/pylons_app/lib/celerylib/tasks.py Tue Sep 28 19:53:52 2010 +0000 @@ -85,7 +85,7 @@ repo = MercurialRepository(repos_path + repo_name) skip_date_limit = True - parse_limit = 350 #limit for single task changeset parsing + parse_limit = 350 #limit for single task changeset parsing optimal for last_rev = 0 last_cs = None timegetter = itemgetter('time') @@ -98,9 +98,12 @@ .filter(Statistics.repository == dbrepo).scalar() if cur_stats: last_rev = cur_stats.stat_on_revision + if not repo.revisions: + return True if last_rev == repo.revisions[-1] and len(repo.revisions) > 1: - #pass silently without any work + #pass silently without any work if we're not on first revision or current + #state of parsing revision(from db marker) is the last revision return True if cur_stats: