Mercurial > kallithea
diff rhodecode/lib/celerylib/tasks.py @ 603:95a502d94860
removed soon deprecated walk method on repository instance
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 18 Oct 2010 01:14:40 +0200 |
parents | ba7e24cd4786 |
children | 7e536d1af60d |
line wrap: on
line diff
--- a/rhodecode/lib/celerylib/tasks.py Tue Oct 12 23:19:29 2010 +0200 +++ b/rhodecode/lib/celerylib/tasks.py Mon Oct 18 01:14:40 2010 +0200 @@ -308,9 +308,10 @@ 'yaws'] repos_path = get_hg_ui_settings()['paths_root_path'].replace('*', '') repo = MercurialRepository(repos_path + repo_name) - + tip = repo.get_changeset() + code_stats = {} - for topnode, dirs, files in repo.walk('/', 'tip'): + for topnode, dirs, files in tip.walk('/'): for f in files: k = f.mimetype if f.extension in LANGUAGES_EXTENSIONS: