# HG changeset patch # User Marcin Kuzminski # Date 1287357280 -7200 # Node ID 95a502d9486073a559ee23825f0b234bb185140c # Parent 8d970b568c134fed90ea3daa7de0c6068c97c58c removed soon deprecated walk method on repository instance diff -r 8d970b568c13 -r 95a502d94860 rhodecode/lib/celerylib/tasks.py --- 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: diff -r 8d970b568c13 -r 95a502d94860 rhodecode/lib/indexers/daemon.py --- 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: