瀏覽代碼

Adjust reposman log messages.

git-svn-id: http://svn.redmine.org/redmine/trunk@16593 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 年之前
父節點
當前提交
f7c2103d8d
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. 2
    3
      extra/svn/reposman.rb

+ 2
- 3
extra/svn/reposman.rb 查看文件

self.format = :json self.format = :json
end end


log("querying Redmine for projects...", :level => 1);
log("querying Redmine for active projects with repository module enabled...", :level => 1);


$redmine_host.gsub!(/^/, "http://") unless $redmine_host.match("^https?://") $redmine_host.gsub!(/^/, "http://") unless $redmine_host.match("^https?://")
$redmine_host.gsub!(/\/$/, '') $redmine_host.gsub!(/\/$/, '')
end end


projects.each do |project| projects.each do |project|
log("treating project #{project.name}", :level => 1)

if project.identifier.empty? if project.identifier.empty?
log("\tno identifier for project #{project.name}") log("\tno identifier for project #{project.name}")
next next
log("\tinvalid identifier for project #{project.name} : #{project.identifier}"); log("\tinvalid identifier for project #{project.name} : #{project.identifier}");
next; next;
end end
log("processing project #{project.identifier} (#{project.name})", :level => 1)


repos_path = File.join($repos_base, project.identifier).gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR) repos_path = File.join($repos_base, project.identifier).gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR)



Loading…
取消
儲存