Opened 15 years ago
Last modified 12 years ago
#5517 closed defect
plugin does not work with git repositories — at Initial Version
Reported by: | martoss | Owned by: | Alec Thomas |
---|---|---|---|
Priority: | normal | Component: | RepoSearchPlugin |
Severity: | normal | Keywords: | |
Cc: | ejucovy | Trac Release: | 0.11 |
Description
when searching within a git repository:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.5/site-packages/trac/search/web_ui.py", line 106, in process_request
results += list(source.get_search_results(req, terms, filters))
File "build/bdist.linux-x86_64/egg/tracreposearch/search.py", line 80, in get_search_results
self.indexer.reindex()
File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 97, in wrap
return f(*args, kw)
File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 236, in reindex
if not self.need_reindex():
File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 97, in wrap
return f(*args, kw)
File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 168, in need_reindex
int(self.meta.get('last-repo-rev', -1)) \
ValueError: invalid literal for int() with base 10: '798217062dcecac7d0af12bf995e4838b7e93e18'
Git does not use plain integers as revision numbers. I removed the int() in the line but indexing/searching within the source still doesn't work.
Change History (2)
Changed 14 years ago by
Attachment: | trac-reposearch-plugin-git.patch added |
---|
Changed 14 years ago by
Attachment: | trac-reposearch-plugin-git.2.patch added |
---|
Patch for RepoSearchPlugin to work with git repositories
Patch for RepoSearchPlugin to work with git repositories