Opened 11 years ago

# Feature to update line numbers through revisions

Reported by: Owned by: Martin.vGagern@… anybody lowest Request-a-Hack normal 0.10

### Description

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.

### comment:1 Changed 9 years ago by Ryan J Ollos

Summary: Feature to update line numers through revisions. → Feature to update line numers through revisions

### comment:2 Changed 8 years ago by anonymous

Summary: Feature to update line numers through revisions → Feature to update line numbers through revisions

### Modify Ticket

Change Properties