Opened 15 years ago

Last modified 12 years ago

#5517 closed defect

[Patch] Plugin does not work with git repositories — at Version 3

Reported by: martoss Owned by: Ryan J Ollos
Priority: normal Component: RepoSearchPlugin
Severity: normal Keywords:
Cc: ejucovy Trac Release: 0.11

Description (last modified by Ryan J Ollos)

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 (5)

Changed 14 years ago by twpayne@…

Patch for RepoSearchPlugin to work with git repositories

Changed 14 years ago by twpayne@…

Patch for RepoSearchPlugin to work with git repositories

comment:1 Changed 14 years ago by Ryan J Ollos

Summary: plugin does not work with git repositories[Patch] Plugin does not work with git repositories

comment:2 Changed 14 years ago by Ryan J Ollos

Owner: changed from Alec Thomas to Ryan J Ollos

Reassigning ticket after changing maintainer of plugin.

comment:3 Changed 14 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.