Feature to update line numbers through revisions
|Reported by:||Martin.vGagern@…||Owned by:||anybody|
I cann make a link to [source:file@rev#Lline] but not simply to a line number without revision number. Makes sense, as with new revisions, the line numbers would change. But on the other hand, all the information where a line is going should be present in SVN. So it would be nice to have some automated way to adjust those line links to point to the corresponding line in the HEAD revision.
I don't know the internal mechanics of Trac, how this could be implemented best. I would prefer some alternative syntax that says "link to the latest revision, but to the line that hat number line in back in revision rev".
Syntax for this is secondary, you could try something like [source:file#Lline@rev], with the idea that the revision specification is bound to the line number, not the file. But it might as well be some kind of macro invocation.
But even if adding this new syntax is too much trouble, it would still be useful to have some tool around to update all links in the wiki semiautomatically, i.e. lists them all and you check which you want updated. This might be better in terms of performance as well.
I'll probably move to some other source viewer for my current project anyway, so this issue has really low priority for me.
But still I thought I'd share my ideas with you.
Change History (2)
comment:1 Changed 4 years ago by rjollos
- Summary changed from Feature to update line numers through revisions. to Feature to update line numers through revisions