subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Phippard <markp...@gmail.com>
Subject Re: viewvc svn revealing fullpaths
Date Fri, 18 Dec 2009 14:33:11 GMT
You should post to users@viewvc.tigris.org

On Thu, Dec 17, 2009 at 10:00 PM, Adam Richards <adam@avertech.net> wrote:
> Hi,
>
> I don't want users to view the entire directory path when
> navigating to a repository -- but it seems this is the default
> behavior.  I've dug around in the config file, and in the users@
> mailing-list, and haven't been able to find what I need.  Before
> I go digging more through code I thought I'd post.
>
> The URL I want users to see when they navigate to a module within
> a repository, say, for example modules "Module_1", "Module_2",
> and "Module_3", should be something like this:
>
>  http://myserver.example.com/viewvc-cgi/viewvc.cgi/Module_1
>  http://myserver.example.com/viewvc-cgi/viewvc.cgi/Module_2
>  http://myserver.example.com/viewvc-cgi/viewvc.cgi/Module_3
>  [...etc...]
>
> However, the behavior right now is this:
>
>  http://myserver.example.com/viewvc-cgi/viewvc.cgi/repository/usr/home/svn/repository/Module_1
>  http://myserver.example.com/viewvc-cgi/viewvc.cgi/repository/usr/home/svn/repository/Module_2
>  http://myserver.example.com/viewvc-cgi/viewvc.cgi/repository/usr/home/svn/repository/Module_3
>
> Why is it, once I get to "/viewvc-cgi/viewvc.cgi/repository/", I
> must then navigate through the real directory structure to reach
> the true module? Any advice on how to change this?  What
> configuration items am I missing?
>
> -----------------------------------------
> My setup:
>
>  viewvc 1.1.2
>  svn: 1.6.6_1
>  py: 2.6.2_3
>  os: freebsd 7.2-rel
>
> repository stored here:
>
>  /usr/home/svn/repository
>
> repository was created with this command:
>
>  $ svnadmin create /usr/home/svn/repository
>
> apache configuration:
>
>   ScriptAlias /viewvc-cgi/ "/usr/local/viewvc/bin/cgi/"
>   <Directory "/usr/local/viewvc/bin/cgi">
>      AllowOverride None
>      Options None
>      Order allow,deny
>      Allow from all
>   </Directory>
>
> ssh svn access with pubkeys; relevant pubkeys prefixed with this
> in ~/.ssh/authorized_keys2:
>
>  command="/usr/local/bin/svnserve -t -r /usr/home/svn/repository --tunnel-user=avr",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty
ssh-dss [...]
>
> viewvc lives in "/usr/local/viewvc", and relevant configuration
> items are:
>
>  root_parents = /usr/home/svn/repository: svn
>  root_as_url_component = 1
>  allowed_views = annotate, diff, markup, roots, co, tar
>  default_file_view = co
> -----------------------------------------
>
> Please let me know if you'd like more information regarding my
> setup/configuration.
>
> Thanks in advance!
>
> --
> Adam Richards
> e:adam@avertech.net | k:0x0BA2643B
>



-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Mime
View raw message