Mercurial > kallithea
changeset 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 | 8d970b568c13 |
children | 5cc96df705b9 |
files | rhodecode/lib/celerylib/tasks.py rhodecode/lib/indexers/daemon.py |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
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:
--- a/rhodecode/lib/indexers/daemon.py Tue Oct 12 23:19:29 2010 +0200 +++ b/rhodecode/lib/indexers/daemon.py Mon Oct 18 01:14:40 2010 +0200 @@ -86,8 +86,9 @@ based on repository walk function """ index_paths_ = set() + tip = repo.get_changeset() try: - for topnode, dirs, files in repo.walk('/', 'tip'): + for topnode, dirs, files in tip.walk('/'): for f in files: index_paths_.add(jn(repo.path, f.path)) for dir in dirs: