changeset 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 dfa7e1a95b60
children dd06bdf974c8
files rhodecode/lib/indexers/daemon.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/indexers/daemon.py	Wed Oct 20 02:31:28 2010 +0200
+++ b/rhodecode/lib/indexers/daemon.py	Wed Oct 20 17:57:55 2010 +0200
@@ -86,8 +86,9 @@
         based on repository walk function
         """
         index_paths_ = set()
-        tip = repo.get_changeset()
         try:
+            tip = repo.get_changeset()
+            
             for topnode, dirs, files in tip.walk('/'):
                 for f in files:
                     index_paths_.add(jn(repo.path, f.path))