summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rwxr-xr-xextra/svn/reposman.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb
index 8319287e2..b72ad1263 100755
--- a/extra/svn/reposman.rb
+++ b/extra/svn/reposman.rb
@@ -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