Project

General

Profile

Patch #6107 » reposmanPath.diff

José Cano, 2010-08-11 18:40

View differences:

extra/svn/reposman.rb (working copy)
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
......
system_or_raise "git update-server-info"
end
end
def self.delete(path)
log("delete git projects must be implemented")
end
end
end
......
(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)
......
end
end
    (1-1/1)