scm: darcs: space cleanup in adapter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4880 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-19 00:56:13 +00:00
parent c6e1d4f39d
commit 537c53f869
1 changed files with 4 additions and 4 deletions

View File

@ -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)