summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-26 13:34:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-26 13:34:44 +0000
commit544fe70b5f0ad8fd0c690b92d6c79bf787de23b9 (patch)
tree971b456bf7a851e2189810681114df2b3b09e23d /lib
parentdecd5366b515014b9b3e2da4aec9132a5be150e9 (diff)
downloadredmine-544fe70b5f0ad8fd0c690b92d6c79bf787de23b9.tar.gz
redmine-544fe70b5f0ad8fd0c690b92d6c79bf787de23b9.zip
fix source indent of lib/redmine/scm/adapters/bazaar_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20193 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/bazaar_adapter.rb56
1 files changed, 30 insertions, 26 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb
index f240284fd..daea57220 100644
--- a/lib/redmine/scm/adapters/bazaar_adapter.rb
+++ b/lib/redmine/scm/adapters/bazaar_adapter.rb
@@ -73,13 +73,14 @@ module Redmine
info = nil
scm_cmd(*cmd_args) do |io|
if io.read =~ %r{^(\d+)\r?$}
- info = Info.new(
- {
- :root_url => url,
- :lastrev =>
- Revision.new({:identifier => $1})
- }
- )
+ info =
+ Info.new(
+ {
+ :root_url => url,
+ :lastrev =>
+ Revision.new({:identifier => $1})
+ }
+ )
end
end
info
@@ -106,15 +107,16 @@ module Redmine
name_locale, slash, revision = $3.strip, $4, $5.strip
name = scm_iconv('UTF-8', @path_encoding, name_locale)
- entries << Entry.new(
- {
- :name => name,
- :path => ((path.empty? ? "" : "#{path}/") + name),
- :kind => (slash.blank? ? 'file' : 'dir'),
- :size => nil,
- :lastrev => Revision.new(:revision => revision)
- }
- )
+ entries <<
+ Entry.new(
+ {
+ :name => name,
+ :path => ((path.empty? ? "" : "#{path}/") + name),
+ :kind => (slash.blank? ? 'file' : 'dir'),
+ :size => nil,
+ :lastrev => Revision.new(:revision => revision)
+ }
+ )
end
end
if logger && logger.debug?
@@ -305,11 +307,12 @@ module Redmine
full_args.map do |e|
full_args_locale << scm_iconv(@path_encoding, 'UTF-8', e)
end
- ret = shellout(
- self.class.sq_bin + ' ' +
- full_args_locale.map {|e| shell_quote e.to_s}.join(' '),
- &block
- )
+ ret =
+ shellout(
+ self.class.sq_bin + ' ' +
+ full_args_locale.map {|e| shell_quote e.to_s}.join(' '),
+ &block
+ )
if $? && $?.exitstatus != 0
raise ScmCommandAborted, "bzr exited with non-zero status: #{$?.exitstatus}"
end
@@ -325,11 +328,12 @@ module Redmine
full_args.map do |e|
full_args_locale << scm_iconv(@path_encoding, 'UTF-8', e)
end
- ret = shellout(
- self.class.sq_bin + ' ' +
- full_args_locale.map {|e| shell_quote e.to_s}.join(' '),
- &block
- )
+ ret =
+ shellout(
+ self.class.sq_bin + ' ' +
+ full_args_locale.map {|e| shell_quote e.to_s}.join(' '),
+ &block
+ )
ret
end
private :scm_cmd_no_raise