Index: extra/svn/reposman.rb
===================================================================
--- extra/svn/reposman.rb	(revision 3936)
+++ extra/svn/reposman.rb	(working copy)
@@ -114,6 +114,9 @@
     def self.create(path)
       system_or_raise "svnadmin create #{path}"
     end
+    def self.delete(path)
+      system_or_raise "rm -rf #{path}"
+    end	
   end
 
   module Git
@@ -124,6 +127,9 @@
         system_or_raise "git update-server-info"
       end
     end
+    def self.delete(path)
+	log("delete git projects must be implemented")	
+    end
   end
 
 end
@@ -230,6 +236,22 @@
   (RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
 end
 
+Dir.chdir($repos_base)
+subdir_list=Dir["*"].reject{|o| not File.directory?(o)}
+subdir_list.each do |dir|
+	if projects.select { |p| p.identifier.eql?(dir) }.size == 0
+	        repos_path = File.join($repos_base, dir).gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR)
+		log( "project not found: #{dir.to_s} -> repos_path: #{repos_path}" )
+	        if scm_module.nil?
+			log('scm_module is nil')
+		else
+			scm_module.delete(repos_path)
+			log("deleted repository: #{repos_path}")
+		end
+	end
+end
+
+
 projects.each do |project|
   log("treating project #{project.name}", :level => 1)
 
@@ -307,4 +329,3 @@
   end
 
 end
-  
\ No newline at end of file
