Modify

Opened 7 years ago

Closed 7 years ago

#1655 closed defect (fixed)

AttributeError: 'PerforceCachedRepository' object has no attribute 'youngest'

Reported by: roblcecil@… Owned by: lewisbaker
Priority: high Component: PerforcePlugin
Severity: blocker Keywords: PerforceCachedRepository youngest
Cc: Trac Release: 0.10

Description

I am using Trac 0.10.4 Stable on Windows, PyPerforce 0.3a1, PyProtocols 0.9.3, Python 2.4.4 and PerforcePlugin Trunk (0.4.4).

This is what I am getting when I click Browse Source (after waiting for the Trac instance to startup)

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python24\Lib\site-packages\trac\versioncontrol\web_ui\browser.py", line 112, in process_request
    rev_or_latest = rev or repos.youngest_rev
  File "c:\Python24\lib\site-packages\trac\versioncontrol\api.py", line 211, in <lambda>
    youngest_rev = property(lambda x: x.get_youngest_rev())
  File "C:\Python24\Lib\site-packages\trac\versioncontrol\cache.py", line 216, in get_youngest_rev
    return self.youngest
AttributeError: 'PerforceCachedRepository' object has no attribute 'youngest'

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by anonymous

I am also getting this error. Did you ever resolve it?

comment:2 Changed 7 years ago by anonymous

Nope. Wonder why the authors have not responded?

comment:3 Changed 7 years ago by lewisbaker

  • Status changed from new to assigned

Sorry for the delay in responding, work has been very busy lately.

I'll look in to this over the next couple of days.

comment:4 Changed 7 years ago by lewisbaker

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [2503]) Fix incompatiblity with changes to CachedRepository class in Trac 0.10.4.
Need to set 'youngest' attribute in sync() method.

Fixes #1655

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 lewisbaker. 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.