On Nov 20, 2007 1:43 PM, Christian Boos <[EMAIL PROTECTED]> wrote: > > Norbert Unterberg wrote:
> > I tried to create a wiki link to a particular line of code. > > I tried somethink like this: > > > > source:/trunk/COPYING#L25 > > > > but that showed revision 25 of that file. > > Should be: > > source:/trunk/[EMAIL PROTECTED] Ok, but why does Trac use the #L25 as revision 25 instead of ignoring the wrong format? And using an URL like http://trac.edgewall.org/browser/trunk/COPYING#L10 does work. So why not supporting #L25 in wiki links? > > You need to specify the revision number, as otherwise the meaning of a > line number will greatly vary over time. You could also say: "You need to specify the revision number, as otherwise the meaning of a file name might vary over time. > However, if you're sure of what you're doing, like for a file below > /tags, or the venerable COPYING file, you can specify @head#L25 or even > @#L25. Also, please note that the above will work in 0.10, probably not > in 0.9. I already found the workaround of @head#L25. I just wanted to know if taking #L25 as a revision number instead of a line number in my sample was a bug, since I expected it to be either an invalid link or a link to the file's line number in HEAD. > > > We are using Trac 0.9. > > Is this a bug or feature > > That's definitely a bug ;-) I know, but I wanted to fix it after the Trac 0.11 and Subversion 1.5 release since I am only a part-time admin of our internal developer team server, and this server is working fine as it is now. Norbert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
