Warning: Can't synchronize with the repository (Unsupported version control system "mtn": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #9 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

python error when viewing source

Reported by: claudesebjean@… Owned by: moschny
Priority: major Component: tracmtn
Version: Keywords:
Cc:

Description

After installing the plugin (v0.0.14) and trying to browse source I have the following error:

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py", line 112, in process_request
    rev_or_latest = rev or repos.youngest_rev
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 189, in <lambda>
    youngest_rev = property(lambda x: x.get_youngest_rev())
  File "build/bdist.linux-i686/egg/tracmtn/backend.py", line 392, in get_youngest_rev
  File "build/bdist.linux-i686/egg/tracmtn/backend.py", line 527, in get_dates
  File "build/bdist.linux-i686/egg/tracmtn/util.py", line 112, in __call__
  File "build/bdist.linux-i686/egg/tracmtn/backend.py", line 291, in _get_cache
  File "build/bdist.linux-i686/egg/tracmtn/cache.py", line 35, in get_cache
TypeError: __init__() takes exactly 3 arguments (2 given)

Thanks.

Attachments

Change History

Changed 4 years ago by moschny

  • status changed from new to closed
  • resolution set to fixed

I guess you are using no cachespec config option? Please have a look at the README. Nevertheless, this is a bug, and should be fixed in 8f6cfab0b6.., thanks for the report!

More code to validate the cachespec configuration option will be added shortly.

Add/Change #9 (python error when viewing source)

Author


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


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.