comparison rhodecode/lib/indexers/daemon.py @ 627:8d78d79b67a3

fixed bug when whoosh failed indexing an new repository.
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 20 Oct 2010 17:57:55 +0200
parents 95a502d94860
children 7e536d1af60d
comparison
equal deleted inserted replaced
626:dfa7e1a95b60 627:8d78d79b67a3
84 """ 84 """
85 recursive walk in root dir and return a set of all path in that dir 85 recursive walk in root dir and return a set of all path in that dir
86 based on repository walk function 86 based on repository walk function
87 """ 87 """
88 index_paths_ = set() 88 index_paths_ = set()
89 tip = repo.get_changeset()
90 try: 89 try:
90 tip = repo.get_changeset()
91
91 for topnode, dirs, files in tip.walk('/'): 92 for topnode, dirs, files in tip.walk('/'):
92 for f in files: 93 for f in files:
93 index_paths_.add(jn(repo.path, f.path)) 94 index_paths_.add(jn(repo.path, f.path))
94 for dir in dirs: 95 for dir in dirs:
95 for f in files: 96 for f in files: