Jesse Vincent > RT-Integration-SVN-0.04 > RT::URI::svn

Download:
RT-Integration-SVN-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Source  

LocalURIPrefix ^

Returns the prefix for a local SVN URI.

ObjectType

ParseURI URI

When handed an svn: URI, figures out whether it's a commit to the local SVN server.

IsLocal

Returns true if this URI is for a commit to the local SVN repository. Returns undef otherwise.

Scheme

Return the URI scheme for SVN commits

HREF

If this is a local ticket, return an HTTP url to it. Otherwise, return its URI.

By default, this assumes that your SVN repository lives at svn://localhost, which can be changed by setting the $SvnRepository configuration variable.

Most svn:// URIs look like svn://svn.example.com/path/to/repository/@1234

RT will assume that this means the Web view of the revision lives at http://svn.example.com/cgi-bin/index.cgi/path/to/repository/?rev=1234

This URL can be changed in RT_SiteConfig.pm with the directive Set( $SvnRepositoryWebView, 'http://svn.example.com/path/to/?rev='); and the correct revision number will be appended.

AsString

Returns either a localized string 'SVN revision 1234 (svn://svn.bestpractical.com)' or the full URI if the object is not local

syntax highlighting: