Re: [viewvc-users] Force SVN over CVS in URL

"C. Michael Pilato" <[email protected]> Thu, 12 Apr 2012 16:40:52 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4F873DD4.9090501__43845.3246410519$1334263263$gmane$org@collab.net>
On 04/12/2012 02:01 PM, Andreas Metzler wrote:
> Hello,
> 
> On a host which is running viewvc for providing access to both CVS and
> svn repositories viewvc prefers CVS over svn, i.e: If there exist both
> /svn/foo and /cvs/foo http://example.com/viewvc/foo will display the
> contents of the CVS repository.
> 
> Is it possible to force viewvc to show the subversion repository
> without changing viewvc configuration (e.g. by passing a magic string
> in the URL like http://example.com/viewvc/foo?svn)? viewvc is hosted
> by CGI on apache2.
> 
> thanks, cu andreas

Andreas, you are correct.  ViewVC does favor CVS over SVN, because ViewVC
(formerly known as ViewCVS) was a CVS browser long before Subversion was
even released.  And no, there is not a way to do what you describe today.

However, it does *seem* like a fairly straightforward feature to add a
roottype="" CGI parameter that is "sticky" across requests and which causes
ViewVC to favor a root offered by one VC system over a similarly named one
offered by another system.

Unfortunately, that wouldn't help the other common situation:  multiple
roots with the same name *from the same VC system*.  Users have been
clamoring for a virtual root system within ViewVC for some time that would
help eliminate all those problems, allowing you to expose, say,
"/viewvc/cvs/foo" and "/viewvc/svn/foo" URLs in order to distinguish the
two.  But I've not yet found the time to look into that (and specifically,
to look into doing that without breaking existing bookmarked URLs folks
already have in place).

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2947829

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk+HPdQACgkQokEGqRcG/W6H/ACeMiZmvdiVh5flM0KsCfSjQqEp
PmAAn2Z64CnwAax0yJkyr3fAjG+IhOn2
=stfM
-----END PGP SIGNATURE-----