summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/darcs_adapter.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-06 10:35:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-06 10:35:55 +0000
commit154f60edd353c2215b9e1622a2e47bdcc5f70101 (patch)
treed12b75e28a5a719b6da5b4102f2651da6702ad3f /lib/redmine/scm/adapters/darcs_adapter.rb
parentc37abb64151e18461cb739ed4658d912a7c752e8 (diff)
downloadredmine-154f60edd353c2215b9e1622a2e47bdcc5f70101.tar.gz
redmine-154f60edd353c2215b9e1622a2e47bdcc5f70101.zip
Fix repository browsing at given revision for various scm and add tests for this.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1329 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/darcs_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/darcs_adapter.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/darcs_adapter.rb b/lib/redmine/scm/adapters/darcs_adapter.rb
index cd8610121..660b6cf8f 100644
--- a/lib/redmine/scm/adapters/darcs_adapter.rb
+++ b/lib/redmine/scm/adapters/darcs_adapter.rb
@@ -53,7 +53,9 @@ module Redmine
path_prefix = (path.blank? ? '' : "#{path}/")
path = '.' if path.blank?
entries = Entries.new
- cmd = "#{DARCS_BIN} annotate --repodir #{@url} --xml-output #{path}"
+ cmd = "#{DARCS_BIN} annotate --repodir #{@url} --xml-output"
+ cmd << " --match \"hash #{identifier}\"" if identifier
+ cmd << " #{path}"
shellout(cmd) do |io|
begin
doc = REXML::Document.new(io)