]> source.dussan.org Git - redmine.git/commitdiff
Merged r3571 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Apr 2010 14:32:29 +0000 (14:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Apr 2010 14:32:29 +0000 (14:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3648 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/reposman.rb

index 8319287e2fedd6ef75af1d61a9abcfbed6f20072..b72ad126391ed9cb8dadd186f97d6584339a15de 100755 (executable)
@@ -221,10 +221,14 @@ def other_read_right?(file)
 end
 
 def owner_name(file)
-  RUBY_PLATFORM =~ /mswin/ ?
+  mswin? ?
     $svn_owner :
     Etc.getpwuid( File.stat(file).uid ).name  
 end
+  
+def mswin?
+  (RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
+end
 
 projects.each do |project|
   log("treating project #{project.name}", :level => 1)
@@ -303,4 +307,4 @@ projects.each do |project|
   end
 
 end
-
+  
\ No newline at end of file