Opened 20 years ago
Closed 20 years ago
#2282 closed defect (wontfix)
Invalid link resolution to a file line
| Reported by: | Emmanuel Blot | Owned by: | Jonas Borgström | 
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | wiki system | Version: | 0.9b2 | 
| Severity: | minor | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
It seems that wiki syntax such as in:
[source:trunk/COPYING#L3 Line3]
is not interpreted as expected: anchor to line 3 of …/trunk/COPYING
the # symbol forces the link resolution to 'revision L3', which is not valid:
#\d+should be resolved as a specific revision of a file, whereas#\w.*should be resolved as an anchor name
Attachments (0)
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Milestone: | 0.9.1 | 
|---|---|
| Resolution: | → wontfix | 
| Status: | new → closed | 
The use of "#rev" is kept for backwards compatibility, but if you want to link to a line anchor you will need to specify a revision number with the "@rev" syntax adopted for #2011.
For example:
[source:trunk/COPYING@2436#L3 Line 3]
The rationale is that line numbers can change, so the revision number is needed for the line numbers to be valid.



  
It's not too late to abandon using
#for revision numbers and use Subversion's designated@character (see svn diff for example). Such change will disambiguate the notation and fix the problem described here.