##// END OF EJS Templates
remove trailing white-spaces and empty lines from extra/svn/reposman.rb....
Toshi MARUYAMA -
r5705:574511fcedee
parent child
Show More
@@ -7,7 +7,7
7 7 # == Usage
8 8 #
9 9 # reposman [OPTIONS...] -s [DIR] -r [HOST]
10 #
10 #
11 11 # Examples:
12 12 # reposman --svn-dir=/var/svn --redmine-host=redmine.example.net --scm subversion
13 13 # reposman -s /var/git -r redmine.example.net -u http://svn.example.net --scm git
@@ -57,7 +57,7
57 57 # -q, --quiet no log
58 58 #
59 59 # == References
60 #
60 #
61 61 # You can find more information on the redmine's wiki : http://www.redmine.org/wiki/redmine/HowTos
62 62
63 63
@@ -225,9 +225,9 end
225 225 def owner_name(file)
226 226 mswin? ?
227 227 $svn_owner :
228 Etc.getpwuid( File.stat(file).uid ).name
228 Etc.getpwuid( File.stat(file).uid ).name
229 229 end
230
230
231 231 def mswin?
232 232 (RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
233 233 end
@@ -246,7 +246,6 projects.each do |project|
246 246 repos_path = File.join($repos_base, project.identifier).gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR)
247 247
248 248 if File.directory?(repos_path)
249
250 249 # we must verify that repository has the good owner and the good
251 250 # rights before leaving
252 251 other_read = other_read_right?(repos_path)
@@ -304,9 +303,6 projects.each do |project|
304 303 log("\trepository #{repos_path} not registered in Redmine: #{e.message}");
305 304 end
306 305 end
307
308 306 log("\trepository #{repos_path} created");
309 307 end
310
311 308 end
312 No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now