Ticket #2545 (closed enhancement: fixed)
Opened 6 years ago
Last modified 5 years ago
Browser should show SVN revision properties
| Reported by: | eblot | Owned by: | cboos |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11 |
| Component: | version control/changeset view | Version: | devel |
| Severity: | minor | Keywords: | properties |
| Cc: | thomas.tressieres@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
Note: This RFE refers to Trac with SVN back-end, but could also be applied to other backend, such as Mercurial back-end.
Trac browser shows file-based properties (for example, svn:ignore).
However, it ignores revision-based properties.
It would be nice if Trac were able to show this kind of properties as well.
Attachments
Change History
comment:1 Changed 6 years ago by cboos
- Milestone set to 1.0
- Owner changed from jonas to cboos
- Status changed from new to assigned
comment:2 Changed 6 years ago by eblot
- Component changed from browser to changeset view
You're right, it makes (more) sense to have it in the TracChangeset view.
Changed 6 years ago by cboos
- Attachment svn_chgset_get_properties_r3116.diff added
Initial implementation of the feature
comment:3 Changed 6 years ago by cboos
- Keywords properties added
- Milestone changed from 1.0 to 0.11
I've uploaded an initial implementation for this.
What remains to be done, is a way to associate a plaintext flag
as well as an htmlclass (one of time, author, message or changeset)
to the property (see the API).
Or perhaps reuse some of the forthcoming mechanisms for
rendering node properties (see #1601).
comment:4 follow-up: ↓ 5 Changed 5 years ago by ttressieres
- Cc thomas.tressieres@… added
do you think the patch could be applied in 0.10.1 or 0.11 Trac version ?
I need it to implement the feature in http://trac-hacks.org/ticket/628.
comment:5 in reply to: ↑ 4 Changed 5 years ago by mgood
Replying to ttressieres:
do you think the patch could be applied in 0.10.1 or 0.11 Trac version
This is scheduled for 0.11. Upcoming 0.10.x releases will only contain bugfixes.
comment:6 follow-up: ↓ 7 Changed 5 years ago by cboos
Yes, I'll commit the patch (for 0.11) but be prepared for possible interface change once #1601 progresses...
comment:7 in reply to: ↑ 6 Changed 5 years ago by ttressieres
comment:8 Changed 5 years ago by cboos
- Resolution set to fixed
- Status changed from assigned to closed
Patch updated and applied in r4130.
comment:9 Changed 5 years ago by cboos
As advertised, the revision properties are now rendered using the IPropertyRenderer from #1601.
Please take a look at the source:sandbox/property-renderers-tmp@4530 (see Last Change from there); I'd be interested in eventually getting some feedback before integrating that work branch in trunk.
comment:10 Changed 5 years ago by eblot
I just gave a try. It seems to work fine w/ my custom properties. Thanks!
As a small enhancement, I think the custom properties should be more visible, or at least differenciated from the regular SVN properties. Maybe a different color/style (CSS), and all custom properties grouped as they are now, but separated from the regular properties with a blank line or the like.
I'm thinking about another enhancement - that could be done through another ticket though: it would be nice if it was possible to define a property-to-name mapping in trac.ini. For example, svn:log is shown as Message, svn:author as Author. It would be great to define custom property names in the config file, such as in the following example
[svnprops] my:version = Version
comment:11 Changed 5 years ago by cboos
See also r4618, which introduces the possibility to have even more control over the rendered property, by returning a RenderedProperty instance instance of just text or markup - which is still possible, of course. This is especially useful for changeset properties.
comment:12 Changed 5 years ago by cboos
Support for RenderedProperty (in addition to plain text and Markup return values) merged in trunk in r4655.



Are you sure you want to see those properties in the TracBrowser,
not in the TracChangeset view?