[Trac-tickets] [The Trac Project] #2733: Push some more behaviour to the vc backend

The Trac Project noreply at edgewall.com
Wed Feb 8 14:26:44 CST 2006


#2733: Push some more behaviour to the vc backend
-----------------------------+----------------------------------------------
 Reporter:  Lele Gaifax      |       Owner:  cmlenz
     Type:  enhancement      |      Status:  new   
 Priority:  normal           |   Milestone:        
Component:  version control  |     Version:  0.9.3 
 Severity:  normal           |    Keywords:        
-----------------------------+----------------------------------------------
 In order to get my new TracDarcs plugin working, I had to apply
 [http://artiemestieri.tn.it/~lele/projects/trac-darcs/trac-api-2866.patch
 this patch] that

  1. Fixes #2731
  1. Adds an "hash" field to the `revision` table
  1. Moves the actual insertion of the cache data from the
 `CachedRepository` class to the `Changeset` one

 Point 3 allows the backend to augment the cached data as needed, simply by
 overriding a `Changeset` method (see
 [http://artiemestieri.tn.it/~lele/projects/trac-
 darcs/tracdarcs/changeset.py for example]).

 Of course, I could have reimplemented the whole `sync()` machinery in a
 subclass of `CachedRepository`, but DRY approach suggests that's not the
 right way.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2733>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list