Opened 13 years ago

Last modified 10 years ago

#1255 new enhancement

Feature to update line numbers through revisions

Reported by: Martin.vGagern@… Owned by: anybody
Priority: lowest Component: Request-a-Hack
Severity: normal Keywords:
Cc: Trac Release: 0.10


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.

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by Ryan J Ollos

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

comment:2 Changed 10 years ago by anonymous

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

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain anybody.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.