Mercurial > kallithea
changeset 3016:b3c8a3a5ce5f beta
fixed issues some people had with whoosh indexers and unicode decode
errors when building os paths
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 21 Nov 2012 23:01:37 +0100 |
parents | 16af24982e30 |
children | eaa36a2497a9 |
files | rhodecode/lib/indexers/daemon.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/indexers/daemon.py Sun Nov 18 23:17:02 2012 +0100 +++ b/rhodecode/lib/indexers/daemon.py Wed Nov 21 23:01:37 2012 +0100 @@ -41,7 +41,7 @@ from rhodecode.config.conf import INDEX_EXTENSIONS from rhodecode.model.scm import ScmModel -from rhodecode.lib.utils2 import safe_unicode +from rhodecode.lib.utils2 import safe_unicode, safe_str from rhodecode.lib.indexers import SCHEMA, IDX_NAME, CHGSETS_SCHEMA, \ CHGSET_IDX_NAME @@ -119,7 +119,7 @@ tip = repo.get_changeset('tip') for _topnode, _dirs, files in tip.walk('/'): for f in files: - index_paths_.add(jn(repo.path, f.path)) + index_paths_.add(jn(safe_str(repo.path), safe_str(f.path))) except RepositoryError: log.debug(traceback.format_exc())