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