Modify

Opened 8 years ago

Last modified 5 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

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.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by rjollos

  • Summary changed from Feature to update line numers through revisions. to Feature to update line numers through revisions

comment:2 Changed 5 years ago by anonymous

  • Summary changed from Feature to update line numers through revisions to Feature to update line numbers through revisions

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.