Modify

Opened 5 years ago

Closed 2 years ago

#5517 closed defect (wontfix)

[Patch] Plugin does not work with git repositories

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

Description (last modified by rjollos)

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.

Attachments (2)

trac-reposearch-plugin-git.patch (638 bytes) - added by twpayne@… 5 years ago.
Patch for RepoSearchPlugin to work with git repositories
trac-reposearch-plugin-git.2.patch (1.1 KB) - added by twpayne@… 5 years ago.
Patch for RepoSearchPlugin to work with git repositories

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by twpayne@…

Patch for RepoSearchPlugin to work with git repositories

Changed 5 years ago by twpayne@…

Patch for RepoSearchPlugin to work with git repositories

comment:1 Changed 4 years ago by rjollos

  • Summary changed from plugin does not work with git repositories to [Patch] Plugin does not work with git repositories

comment:2 Changed 4 years ago by rjollos

  • Owner changed from athomas to rjollos

Reassigning ticket after changing maintainer of plugin.

comment:3 Changed 4 years ago by rjollos

  • Description modified (diff)

comment:4 Changed 3 years ago by rjollos

Hello,

I took over maintainership of this plugin from athomas some time ago. There is a significant amount of work to do on this plugin, and I don't foresee having the time to do it all.

helend has written the TracSuposePlugin, which seems like a much better solution. Rather than writing the repository search functionality from scratch, a Trac interface to an existing repository search tool has been created. Rather than throwing more effort at this plugin, I'd prefer to help helend with enhancements to the TracSuposePlugin, or spend my time on other Trac plugin projects altogether.

I'd like to get some feedback and hear if anyone knows of a compelling reason to continue this project rather than moving to the TracSuposePlugin. Is there functionality in this plugin that doesn't exist in the TracSuposePlugin? I'm open to hearing all opinions and suggestions.

I'll leave these tickets open for about a week, but in all likelihood will close all of them and deprecate the plugin.

Thanks for your time,

  • Ryan

comment:5 Changed 2 years ago by rjollos

  • Cc ejucovy added
  • Resolution set to wontfix
  • Status changed from new to closed

Please try MultiRepoSearchPlugin for Trac 0.12 and non-svn repositories.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.