Mercurial > kallithea
changeset 2372:95bea8088213 beta
fixed issue with whoosh always re-indexing non-ascii filenames even if they didn't change
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Jun 2012 16:53:21 +0200 |
parents | a05e01144a2c |
children | 1828eb7fa688 |
files | rhodecode/lib/indexers/daemon.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/indexers/daemon.py Sat Jun 02 00:10:11 2012 +0200 +++ b/rhodecode/lib/indexers/daemon.py Sat Jun 02 16:53:21 2012 +0200 @@ -172,8 +172,8 @@ log.debug('>>> FINISHED BUILDING INDEX <<<') def update_index(self): - log.debug('STARTING INCREMENTAL INDEXING UPDATE FOR EXTENSIONS %s' % - INDEX_EXTENSIONS) + log.debug(('STARTING INCREMENTAL INDEXING UPDATE FOR EXTENSIONS %s ' + 'AND REPOS %s') % (INDEX_EXTENSIONS, self.repo_paths)) idx = open_dir(self.index_location, indexname=self.indexname) # The set of all paths in the index @@ -215,6 +215,7 @@ ri_cnt = riwc_cnt = 0 for repo_name, repo in self.repo_paths.items(): for path in self.get_paths(repo): + path = safe_unicode(path) if path in to_index or path not in indexed_paths: # This is either a file that's changed, or a new file # that wasn't indexed before. So index it!