Edgewall Software

Opened 9 years ago

Last modified 9 years ago

#12027 closed enhancement

Use namedtuple for RevCache in PyGIT module — at Initial Version

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.6
Component: plugin/git Version:
Severity: normal Keywords: refactoring
Cc: Branch:
Release Notes:

Utilized namedtuple in RevCache class definition to replace hard-coded definition of a namedtuple-equivalent class.

API Changes:
Internal Changes:

Description

There is a refactoring task captured in this comment: tags/trac-1.0.4/tracopt/versioncontrol/git/PyGIT.py@:245-250#L241.

namedtuple is actually available since Python 2.6, however we cannot simply replace the class since it has been extended with methods in [11351]. We can, however, inherit from a namedtuple and implement the methods from [11351].

Change History (0)

Note: See TracTickets for help on using tickets.