Re: [viewvc-users] how can I "skip" the repository listing
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Sam Watson wrote: > Hi, > > I have a separate viewvc instance for each repository on our server > (because each one needs its own ACL, managed by basic basic auth. I have > a separate ScriptAlias for each repos, with a common prefix, that all > point to the same viewvc.cgi, which I hacked to figure out the repos to > show based on the REQUEST_URI. So, I have: > > ScriptAlias /viewvc/repos_a /path/to/viewvc.cgi > ScriptAlias /viewvc/repos_b /path/to/viewvc.cgi > ScriptAlias /viewvc/repos_c /path/to/viewvc.cgi > ScriptAlias /viewvc /path/to/viewvc-wrapper.cgi > > viewvc-wrapper.cgi shows my own listing of all repositories and provides > links to each, in th form /viewvc/repos_name. > > So far so good. > > But when I go to /viewvc/repos_a, I'm shown a repository listing, and > obviously the only repos to show is repos_a. So to actually view the > repository root, it's /viewvc/repos_a/repos_a. This is clunky. > > Is there an easy way to disable the repository listing? i can gaurantee > that there is always going to be only one repository listed in svn_roots > (but I also set default_root for safe measure). If you have that guarantee, then do first tell ViewVC you don't need the root name to be part of the URL: root_as_url_component = 0 Then ensure that default_root is set to the repository served by that ViewVC instance: default_root = repos_a If you want, you can also remove 'roots' from the list of in the 'allowed_views' option. (Just to avoid showing your users a view option that's pointless in your situation. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2590818 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkvOGCgACgkQokEGqRcG/W7LVQCfT8L5aV+ql6qWWonLCny6jGTD kW4AnRblMBXeky+PiXjp7+pUVkGKyb1R =Brho -----END PGP SIGNATURE-----