Changeset - 95a502d94860
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 15 years ago 2010-10-18 01:14:40
marcin@python-works.com
removed soon deprecated walk method on repository instance
2 files changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/celerylib/tasks.py
Show inline comments
 
@@ -308,9 +308,10 @@ def __get_codes_stats(repo_name):
 
                    '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:
rhodecode/lib/indexers/daemon.py
Show inline comments
 
@@ -86,8 +86,9 @@ class WhooshIndexingDaemon(object):
 
        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:
0 comments (0 inline, 0 general)