Menu

Commit [r4481]  Maximize  Restore  History

Blame branch: basic working version for blame support.

Summary of changes:
- IHTMLPreviewAnnotator has been extended in the following ways:
- new method `get_annotation_data(context)` that can be used to setup a particular annotator, so that further calls to `annotate_row` get to see this additional data
- `annotate_row(context, row, number, line, annotations)` has been extended to take additional arguments `context` and `annotations` (the latter being the data produced by `get_annotation_data`)
- Mimeview methods `preview_data` and `render` now take an additional `force_source` arguments, defaulting to `False`. This is useful for forcing annotations on content that would otherwise be rendered to some non-line oriented format
- In the `versioncontrol` API:
- new method `Repository.short_rev` (needed to display abbreviated forms of revision numbers, in versioncontrol backends having long identifiers)
- new method `Node.get_annotations()`, returning an array of `rev`, one entry per line of the content
- Some refactorings in the `svn_fs` backend: simplify the `SubversionNode` constructor so that it gets only the `SubversionRepository`. This is needed in order to implement `SubversionNode.get_annotations()`

TODO:
- the WikiContext needs to now about the version information if available
- the display of annotation is ugly. Well, not that ugly, but could be much improved.
- more robust code in case `svn.client.blame2` is not available or not working correctly.

cboos 2006-12-21

changed /sandbox/blame/htdocs/css/browser.css
changed /sandbox/blame/templates/browser.html
changed /sandbox/blame/trac/mimeview/api.py
changed /sandbox/blame/trac/versioncontrol/api.py
changed /sandbox/blame/trac/versioncontrol/svn_fs.py
changed /sandbox/blame/trac/versioncontrol/web_ui/browser.py
/sandbox/blame/htdocs/css/browser.css Diff Switch to side-by-side view
Loading...
/sandbox/blame/templates/browser.html Diff Switch to side-by-side view
Loading...
/sandbox/blame/trac/mimeview/api.py Diff Switch to side-by-side view
Loading...
/sandbox/blame/trac/versioncontrol/api.py Diff Switch to side-by-side view
Loading...
/sandbox/blame/trac/versioncontrol/svn_fs.py Diff Switch to side-by-side view
Loading...
/sandbox/blame/trac/versioncontrol/web_ui/browser.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB