On Tuesday, March 29, 2016 at 1:12:52 PM UTC-7, Mary Loftis wrote: > > We have TRAC and Subversion set up in the following environment: > > Platform: Windows Server 2008 R2 Standard SP1 (64 bit) > Service: CollabNet Subversion Apache, Apache 2.2.23 (win32) > Service: CollabNet Subversion Client Svnserve V1.7.8 > Desktop App: Tortoise SVN Client V1.7.8 (64 bit) > > TRAC uses the Subversion access control file for granting/denying access > to TRAC projects. > > When setting up a TRAC project, it indicates you have to give the location > of the Subversion repository. For most of our TRAC projects, this is fine. > The top-level subversion directory located on the server is where we want > to point TRAC. > > Assume subversion repositories on the server are located here: > > e:\svn_repository\AAA > e:\svn_repository\BBB > > We have a TRAC project pointing directly to the top-level svn folder, AAA. > Key settings in the AAA trac.ini file are: > > [components] > tracopt.versioncontrol.svn.* = enabled > > [repositories] > AAA.description = This is the AAA project repository. > AAA.dir = e:\svn_repository\AAA > AAA.hidden = true > AAA.type = svn > AAA.url = https://<ourServer>/svn/AAA <https://%3courserver%3e/svn/AAA> > tsvn = tsvn: Interact with TortoiseSvn > > [stats] > root = e:\svn_repository\AAA > > [svn] > authz_file = E:\etc\.svnaccess # this is the same file subversion uses for > authentication > > [trac] > authz_file = E:\etc\.svnaccess # this is the same file subversion uses > for authentication > authz_module_name = AAA > repository_dir = e:\svn_repository\AAA > > > However we have some projects where we want to have TRAC point to a folder > under the subversion repo's top-level folder. Because the directory > structure for some repos is built into svn and are not folders under the > top-level folder on the server, I do not know where to point certain TRAC > variables in the trac.ini file. > > The directory structure on the server for the repo e:\svn_repository\BBB > shows the following folders and files: > > (folder) conf > (folder) dav > (folder) db > (folder) hooks > (folder) locks > (file) format > (file README.txt > > The subversion repo browser for e:\svn_repository\BBB shows the following: > > > (folder) ComponentLibrary > > (folder) branches # This is a subfolder under ComponentLibrary > (folder) tags # This is a subfolder under ComponentLibrary > (folder) trunk # This is a subfolder under ComponentLibrary > > > Rather than creating a TRAC project pointing to e:\svn_repository\BBB, I > want to point it to the ComponentLibrary folder under > e:\svn_repository\BBB, however there is no folder on the server called > ComponentLibrary. What would I have to do in the trac.ini file to be able > to set the TRAC project at this lower subversion level? >
I think it's not possible to have the Trac repository browser point to a subdirectory of a Subversion repository. There might be a way to add the feature to Trac in the future, by allowing an alias to a subdirectory of a repository. You could then add the repository, set it as hidden, and add an alias that points to the subdirectory. - Ryan -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
