##// END OF EJS Templates
updated whoosh indexer to take index building argument type
marcink -
r451:d726f62f default
parent child Browse files
Show More
@@ -184,8 +184,24 class WhooshIndexingDaemon(object):
184 self.update_index()
184 self.update_index()
185
185
186 if __name__ == "__main__":
186 if __name__ == "__main__":
187 repo_location = '/home/marcink/hg_repos/*'
187 arg = sys.argv[1:]
188 full_index = True # False means looking just for changes
188 if not arg:
189 sys.stdout.write('Please specify indexing type [full|incremental]'
190 ' as script arg \n')
191 sys.exit()
192 if arg[0] == 'full':
193 full_index = True
194 elif arg[0] == 'incremental':
195 # False means looking just for changes
196 full_index = False
197 else:
198 sys.stdout.write('Please use [full|incremental]'
199 ' as script arg \n')
200 sys.exit()
201
202
203 repo_location = '/home/hg_repos/*'
204
189 try:
205 try:
190 l = DaemonLock()
206 l = DaemonLock()
191 WhooshIndexingDaemon(repo_location=repo_location)\
207 WhooshIndexingDaemon(repo_location=repo_location)\
General Comments 0
You need to be logged in to leave comments. Login now