• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

New BBCode tag for linking to SVN revisions?

tobik@

Daemon
Developer

Thanks: 1,175
Messages: 1,769

#1
Would it be possible to add a new BBCode tag for linking to SVN revisions to the forums? Something like:
Code:
[svn=$repo]$revision[/svn]
 -> https://svnweb.freebsd.org/$repo?view=revision&revision=$revision
where $repo is one of base,doc,ports,... (defaulting to ports if missing) and $revision is the SVN revision to link to.

For example [svn=ports]409799[/svn] would link to https://svnweb.freebsd.org/ports?view=revision&revision=409799 and be shown as Ports r409799.

This would complement the existing pr tag.
 

lme@

Administrator
Staff member
Administrator
Moderator
Developer

Thanks: 292
Messages: 775

#2
I like the idea!
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Thanks: 3,558
Messages: 13,856

#4
I think we could do something like this, although maybe it should be called revnumber or just rev, which is not Subversion-specific and is consistent with our DocBook markup.

But how bad do we need it? People posting links to specific revisions is pretty rare at present. In fairness, that might be due to the hassle of finding the URL and copying it in.