Can I generate links to the actual svn repository

0 views
Skip to first unread message

Stephen Bannasch

unread,
Nov 15, 2007, 5:24:35 PM11/15/07
to trac-...@googlegroups.com
Is there a way to generate links to the actual svn repository location.

For example if a user was viewing the trunk dir of the repository in Trac:

http://trac.host.com/myproject/browser/trunk

Could also generate and render the link to the actual svn location:

https://svn.host.com/svn/myproject/trunk

so someone could copy use the link in a 'svn co' command?

James Guyton

unread,
Nov 15, 2007, 6:03:36 PM11/15/07
to trac-...@googlegroups.com
Going out on a limb, it would probably be possible to define the base path your particular svn environment is located at in the specific trac.ini for your trac environment, then to modify the browser page to list the base path + your navigated path somewhere on the page.

I would imagine that it could get fairly nasty when you start getting to InterTracs.

There's a shot in the dark for you, but you would be better off listening to a dev's (Noah/Manu/etc) advice.

James Guyton (JGU)

Jani Tiainen

unread,
Nov 19, 2007, 4:55:03 AM11/19/07
to trac-...@googlegroups.com
Stephen Bannasch kirjoitti:

Problem is that Trac doesn't know your HTTP server setup, it only uses
local filesystem to browse repository thus with current implementation
it would be pretty much impossible to provide visible root-url to
revison control system.

It could be possible to define macro/plugin that reads simple config
param from trac.ini that contains root url to repository.

--

Jani Tiainen

Reply all
Reply to author
Forward
0 new messages