Opened 18 years ago
Last modified 3 years ago
#1255 new enhancement
Feature to update line numbers through revisions
Reported by: | 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#L
line]
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#L
line@
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 (3)
comment:1 Changed 15 years ago by
Summary: | Feature to update line numers through revisions. → Feature to update line numers through revisions |
---|
comment:2 Changed 15 years ago by
Summary: | Feature to update line numers through revisions → Feature to update line numbers through revisions |
---|
What if the specific line has been changed or removed? What if a whole source file has been copied, moved, replaced or deleted?