remove trailing white-spaces and empty lines from extra/svn/reposman.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5825 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5b8dfe0372
commit
574511fced
@ -7,7 +7,7 @@
|
|||||||
# == Usage
|
# == Usage
|
||||||
#
|
#
|
||||||
# reposman [OPTIONS...] -s [DIR] -r [HOST]
|
# reposman [OPTIONS...] -s [DIR] -r [HOST]
|
||||||
#
|
#
|
||||||
# Examples:
|
# Examples:
|
||||||
# reposman --svn-dir=/var/svn --redmine-host=redmine.example.net --scm subversion
|
# reposman --svn-dir=/var/svn --redmine-host=redmine.example.net --scm subversion
|
||||||
# reposman -s /var/git -r redmine.example.net -u http://svn.example.net --scm git
|
# reposman -s /var/git -r redmine.example.net -u http://svn.example.net --scm git
|
||||||
@ -57,7 +57,7 @@
|
|||||||
# -q, --quiet no log
|
# -q, --quiet no log
|
||||||
#
|
#
|
||||||
# == References
|
# == References
|
||||||
#
|
#
|
||||||
# You can find more information on the redmine's wiki : http://www.redmine.org/wiki/redmine/HowTos
|
# You can find more information on the redmine's wiki : http://www.redmine.org/wiki/redmine/HowTos
|
||||||
|
|
||||||
|
|
||||||
@ -225,9 +225,9 @@ end
|
|||||||
def owner_name(file)
|
def owner_name(file)
|
||||||
mswin? ?
|
mswin? ?
|
||||||
$svn_owner :
|
$svn_owner :
|
||||||
Etc.getpwuid( File.stat(file).uid ).name
|
Etc.getpwuid( File.stat(file).uid ).name
|
||||||
end
|
end
|
||||||
|
|
||||||
def mswin?
|
def mswin?
|
||||||
(RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
|
(RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
|
||||||
end
|
end
|
||||||
@ -246,7 +246,6 @@ projects.each do |project|
|
|||||||
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)
|
||||||
|
|
||||||
if File.directory?(repos_path)
|
if File.directory?(repos_path)
|
||||||
|
|
||||||
# we must verify that repository has the good owner and the good
|
# we must verify that repository has the good owner and the good
|
||||||
# rights before leaving
|
# rights before leaving
|
||||||
other_read = other_read_right?(repos_path)
|
other_read = other_read_right?(repos_path)
|
||||||
@ -304,9 +303,6 @@ projects.each do |project|
|
|||||||
log("\trepository #{repos_path} not registered in Redmine: #{e.message}");
|
log("\trepository #{repos_path} not registered in Redmine: #{e.message}");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
log("\trepository #{repos_path} created");
|
log("\trepository #{repos_path} created");
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user