[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Repository Name

From: Cliff Stanford <cliff_at_may.be>
Date: 2006-01-06 00:28:14 CET

I'm new to this so please feel free to flame if this has been discussed
before and I've missed it in my searching.

Having hunted around though the source code today, I find there is an
undocumented Apache configuration directive:

SVNReposName "Name of the Repository"

This follows through to the web browser, making the output much clearer
if you are using the SVNPath directive.

Where you are using the SVNParentPath directive, however, it's about as
much use as a chocolate teapot. Obviously, each repository needs to set
the name separately.

I would therefore suggest the following two-line patch to repos.c which
makes the default output much clearer and does not, I believe, break
anything else:

-----------------------------------------------------------------------
[cliff@ih mod_dav_svn]$ svn diff
Index: repos.c
===================================================================
--- repos.c (revision 17990)
+++ repos.c (working copy)
@@ -1300,6 +1300,10 @@
   if (err)
     return err;

+ /* If we don't have a repo_name in the conf, use repos_name */
+ if (repo_name == NULL)
+ repo_name = repos_name;
+
   /* The path that we will eventually try to open as an svn
      repository. Normally defined by the SVNPath directive. */
   fs_path = dav_svn_get_fs_path(r);
[cliff@ih mod_dav_svn]$
-----------------------------------------------------------------------

Let me know what you think.

Regards,
Cliff.

-- 
Cliff Stanford
Might Limited                           +44 845 0045 666 (Office)
Suite 67, Dorset House                  +44 7973 616 666 (Mobile)
Duke Street, Chelmsford, CM1 1TB
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 6 02:55:21 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.