| [vhffs-dev] [738]   Fixes public panel part and config generators for viewvc   and websvn to the new svn naming schema | 
[ Thread Index | 
Date Index
| More vhffs.org/vhffs-dev Archives
] 
- To: vhffs-dev@xxxxxxxxx
 
- Subject: [vhffs-dev] [738]   Fixes public panel part and config generators for viewvc   and websvn to the new svn naming schema
 
- From: subversion@xxxxxxxxx
 
- Date: Tue, 31 Jul 2007 01:26:53 +0200
 
Revision: 738
Author:   gradator
Date:     2007-07-30 23:26:53 +0000 (Mon, 30 Jul 2007)
Log Message:
-----------
Fixes public panel part and config generators for viewvc and websvn to the new svn naming schema
Modified Paths:
--------------
    trunk/vhffs-public/group.pl
    trunk/vhffs-robots/src/create_viewvcconf.pl
    trunk/vhffs-robots/src/svn_websvn.pl
Modified: trunk/vhffs-public/group.pl
===================================================================
--- trunk/vhffs-public/group.pl	2007-07-30 22:37:19 UTC (rev 737)
+++ trunk/vhffs-public/group.pl	2007-07-30 23:26:53 UTC (rev 738)
@@ -179,7 +179,9 @@
 			   	 	$subtemplate = new HTML::Template( filename => $templatedir."/public/misc/svn-part.tmpl" );
 			    		$subtemplate->param( SVNROOT => $_->get_reponame );
 			    		$subtemplate->param( DESCRIPTION => CGI::escapeHTML( $_->get_description ) );
-			    		$subtemplate->param( SVNURL  => $vhffs->get_config->get_svnweburl . '/svn_' . $group->get_groupname . '_' . $_->get_reponame . '/' );
+					my $svnpath = $_->get_reponame;
+					$svnpath =~ s/\//_/;
+			    		$subtemplate->param( SVNURL  => $vhffs->get_config->get_svnweburl . '/svn_' . $svnpath  . '/' );
 			    		$output .= $subtemplate->output;
 				}
 
Modified: trunk/vhffs-robots/src/create_viewvcconf.pl
===================================================================
--- trunk/vhffs-robots/src/create_viewvcconf.pl	2007-07-30 22:37:19 UTC (rev 737)
+++ trunk/vhffs-robots/src/create_viewvcconf.pl	2007-07-30 23:26:53 UTC (rev 738)
@@ -73,7 +73,9 @@
 	{
 		if( $svn->is_public == 1 )
 		{
-			$svnroots .= "  svn_" . $svn->get_group->get_groupname . "_" . $svn->get_reponame . ": " . $svn->get_dir . ",\n";
+			my $svnpath = $svn->get_reponame;
+			$svnpath =~ s/\//_/;
+			$svnroots .= "  svn_" . $svnpath . ": " . $svn->get_dir . ",\n";
 		}
 	}
 }
Modified: trunk/vhffs-robots/src/svn_websvn.pl
===================================================================
--- trunk/vhffs-robots/src/svn_websvn.pl	2007-07-30 22:37:19 UTC (rev 737)
+++ trunk/vhffs-robots/src/svn_websvn.pl	2007-07-30 23:26:53 UTC (rev 738)
@@ -49,7 +49,7 @@
 	if( $svn->is_public == 1 )
 	{
 		print FILE  "\$config->addRepository(\"";
-		print FILE  $svn->get_reponame . " (".$svn->get_group->get_groupname .")";
+		print FILE  $svn->get_reponame;
 		print FILE  "\",\"";
 		print FILE $svn->get_dir;
 		print FILE  "\");\n";