]> source.dussan.org Git - redmine.git/commitdiff
Fixes Darcs#cat with Postgresql.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 6 Dec 2008 17:20:37 +0000 (17:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 6 Dec 2008 17:20:37 +0000 (17:20 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2095 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/darcs.rb

index 855a403fcd4929d100c01aa1dcd54cfae373b259..5c8d3871af70c912ccf52bd21dc0c08c6e64a604 100644 (file)
@@ -52,7 +52,7 @@ class Repository::Darcs < Repository
   end
   
   def cat(path, identifier=nil)
-    patch = identifier.nil? ? nil : changesets.find_by_revision(identifier)
+    patch = identifier.nil? ? nil : changesets.find_by_revision(identifier.to_s)
     scm.cat(path, patch.nil? ? nil : patch.scmid)
   end