You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2010/02/02 06:12:43 UTC

svn commit: r905517 - /subversion/trunk/subversion/mod_dav_svn/repos.c

Author: cmpilato
Date: Tue Feb  2 05:12:34 2010
New Revision: 905517

URL: http://svn.apache.org/viewvc?rev=905517&view=rev
Log:
Teach mod_dav_svn to generate an up-dir link to the parent-path
listing in root directory listings of repositories (where parent-path
listing is enabled).

* subversion/mod_dav_svn/repos.c
  (deliver): Permit up-dir link generation in the repository root
    directory iff parent-path listing is enabled.

Patch by: Jan Nijtmans <nijtmans{_AT_}tigris.org>

Modified:
    subversion/trunk/subversion/mod_dav_svn/repos.c

Modified: subversion/trunk/subversion/mod_dav_svn/repos.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/repos.c?rev=905517&r1=905516&r2=905517&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/repos.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/repos.c Tue Feb  2 05:12:34 2010
@@ -3266,8 +3266,10 @@
           ap_fputs(output, bb, ">\n");
         }
 
-      if ((resource->info->repos_path && resource->info->repos_path[1] != '\0')
-          && (resource->info->restype != DAV_SVN_RESTYPE_PARENTPATH_COLLECTION))
+      if ((resource->info->restype != DAV_SVN_RESTYPE_PARENTPATH_COLLECTION)
+          && resource->info->repos_path
+          && ((resource->info->repos_path[1] != '\0')
+              || dav_svn__get_list_parentpath_flag(resource->info->r)))
         {
           if (gen_html)
             {