# HG changeset patch # User Marcin Kuzminski # Date 1338648801 -7200 # Node ID 95bea8088213feede781ed7e74cd4a023bfe0fa0 # Parent a05e01144a2c5e5646a0038edecf253f13157936 fixed issue with whoosh always re-indexing non-ascii filenames even if they didn't change diff -r a05e01144a2c -r 95bea8088213 rhodecode/lib/indexers/daemon.py --- 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!