##// END OF EJS Templates
fixed issues some people had with whoosh indexers and unicode decode...
marcink -
r3016:b3c8a3a5 beta
parent child Browse files
Show More
@@ -41,7 +41,7 b' sys.path.append(project_path)'
41
41
42 from rhodecode.config.conf import INDEX_EXTENSIONS
42 from rhodecode.config.conf import INDEX_EXTENSIONS
43 from rhodecode.model.scm import ScmModel
43 from rhodecode.model.scm import ScmModel
44 from rhodecode.lib.utils2 import safe_unicode
44 from rhodecode.lib.utils2 import safe_unicode, safe_str
45 from rhodecode.lib.indexers import SCHEMA, IDX_NAME, CHGSETS_SCHEMA, \
45 from rhodecode.lib.indexers import SCHEMA, IDX_NAME, CHGSETS_SCHEMA, \
46 CHGSET_IDX_NAME
46 CHGSET_IDX_NAME
47
47
@@ -119,7 +119,7 b' class WhooshIndexingDaemon(object):'
119 tip = repo.get_changeset('tip')
119 tip = repo.get_changeset('tip')
120 for _topnode, _dirs, files in tip.walk('/'):
120 for _topnode, _dirs, files in tip.walk('/'):
121 for f in files:
121 for f in files:
122 index_paths_.add(jn(repo.path, f.path))
122 index_paths_.add(jn(safe_str(repo.path), safe_str(f.path)))
123
123
124 except RepositoryError:
124 except RepositoryError:
125 log.debug(traceback.format_exc())
125 log.debug(traceback.format_exc())
General Comments 0
You need to be logged in to leave comments. Login now