summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/darcs_adapter.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-19 00:56:13 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-19 00:56:13 +0000
commit537c53f86958785008cf129d42a81c82f6ca16da (patch)
treef57e6b353dafacd4006ecf235ca09cc9e03fbd01 /lib/redmine/scm/adapters/darcs_adapter.rb
parentc6e1d4f39db3f221a7198a545e172b94cf7b5be1 (diff)
downloadredmine-537c53f86958785008cf129d42a81c82f6ca16da.tar.gz
redmine-537c53f86958785008cf129d42a81c82f6ca16da.zip
scm: darcs: space cleanup in adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4880 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/darcs_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/darcs_adapter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/scm/adapters/darcs_adapter.rb b/lib/redmine/scm/adapters/darcs_adapter.rb
index 4eed61e96..e46c9dbfd 100644
--- a/lib/redmine/scm/adapters/darcs_adapter.rb
+++ b/lib/redmine/scm/adapters/darcs_adapter.rb
@@ -21,7 +21,7 @@ require 'rexml/document'
module Redmine
module Scm
module Adapters
- class DarcsAdapter < AbstractAdapter
+ class DarcsAdapter < AbstractAdapter
# Darcs executable name
DARCS_BIN = Redmine::Configuration['scm_darcs_command'] || "darcs"
@@ -73,7 +73,7 @@ module Redmine
if path.blank?
path = ( self.class.client_version_above?([2, 2, 0]) ? @url : '.' )
end
- entries = Entries.new
+ entries = Entries.new
cmd = "#{self.class.sq_bin} annotate --repodir #{shell_quote @url} --xml-output"
cmd << " --match #{shell_quote("hash #{identifier}")}" if identifier
cmd << " #{shell_quote path}"
@@ -164,7 +164,7 @@ module Redmine
if modified_element.elements['modified_how'].text.match(/removed/)
return nil
end
-
+
Entry.new({:name => element.attributes['name'],
:path => path_prefix + element.attributes['name'],
:kind => element.name == 'file' ? 'file' : 'dir',
@@ -173,7 +173,7 @@ module Redmine
:identifier => nil,
:scmid => modified_element.elements['patch'].attributes['hash']
})
- })
+ })
end
def get_paths_for_patch(hash)