Christian Boos wrote:
Tim Hatch wrote:
I notice that there's a cmlenz-dev/blame branch that hasn't been
touched in about a year. This would be pretty much impossible to merge
with trunk at this point, so what does everyone think about creating a
new one under sandbox for collaborative work[1]?
Ok, to get the ball rolling, I've committed a first shot at the blame
support, see:
Hello everybody, and happy new year!
I've enhanced the blame support quite a bit, and now I think it looks
really good:
http://trac.edgewall.org/attachment/wiki/ChristianBoos/blame-screenshot2.png
Please try out the blame branch (svn co
https://svn.edgewall.org/repos/trac/sandbox/blame).
Tim is also working on doing our own blame algorithm, which will be
useful in order to annotate other versioned content (wiki pages, ticket
description, ...). To that end, I'm thinking of adding a resource API,
in connection with the WikiContext API and the work Alec started in the
security branch. The idea would be to get to the versioned content
starting from the context:
Currently I do (in the BlameAnnotator):
node = self.repos.get_node(self.context.id, rev)
# -- get revision numbers for each line
self.annotations = node.get_annotations()
# -- from the annotations, retrieve changesets and
# determine the span of dates covered, for the color code.
self.changesets = []
chgset = self.repos.get_changeset(rev)
This would become something like:
node = self.context.resource # (*)
self.annotations = node.get_annotations()
self.changesets = []
chgset = node.get_changeset(rev)
and would work for any kind of resource, not just repository source files.
(*) after the rename suggested by Alec: s/resource/realm/ and
s/object/resource/
-- Christian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to trac-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---