TeensyMud - 'A ruby mud server.'

Subject: Subversion patches and other info
Subject: Subversion patches and other info
Author: Tyche
Posted: 01/21/2006 06:52PM

Here's a patch if you have multiple repositories under the same parent:
  def index
   @fpath = params['path'].join('/')
   repos = `ls -1 \\svn`.gsub(/\n/,"/\n").split
   if params['path'].shift.nil?
     @files = repos
     @back = ""
   else
     @files = []
     tmp = `svn ls #{TWCONFIG['repository']}/#{@fpath}`
     @files = tmp.split
     @back = @fpath.gsub(/\/\w+$|^\w+$/, "")
   end
   @title = "Browse repository"
  end


I'm using this elsewhere and haven't integrated it into the working version yet.

Also here's an Apache configuration to proxy to webbrick, while routing subversion requests to the right place.

< VirtualHost *:80 >
  ServerName xxxxxxxxx
  ServerAdmin xxxx@xxxx.xx
  ServerAlias xxxxxxxxxx
  ErrorLog C:/www/xxxxxxxx/log/apache_error.log
  TransferLog C:/www/xxxxxxx/log/apache_access.log

  ProxyPass /svn      !
  ProxyPass /         http://localhost:3002/
  ProxyPassReverse /  http://localhost:3002/

  DocumentRoot C:/www/xxxxxxx/public/

  < Directory C:/www/xxxxxxxx/public/>
    Options ExecCGI FollowSymLinks
    AddHandler fastcgi-script .fcgi
    AddHandler cgi-script .cgi
    AllowOverride all
    Order allow,deny
    Allow from all
  < /Directory>

  #source code repository
  < Location /svn>
    DAV svn
    SVNParentPath "C:/svn"
    #SVNIndexXSLT "/svnindex.xsl"

    # our access control policy
    AuthzSVNAccessFile "C:/www/svnaccess"
            
    # try anonymous access first, resort to real 
    # authentication if necessary.
    Satisfy Any
    Require valid-user
            
    # how to authenticate a user
    AuthType Basic
    AuthName "Repository"
    AuthUserFile "C:/www/svnusers"

  < /Location>

< /VirtualHost>


reply