OSDN Git Service

Fixed: new line at the end of a file is not displayed in diff.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 2 Jun 2008 20:14:06 +0000 (20:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 2 Jun 2008 20:14:06 +0000 (20:14 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1487 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb

index 2c254d4..8fbae9f 100644 (file)
@@ -279,7 +279,6 @@ module Redmine
             end
           else
             if line =~ /^[^\+\-\s@\\]/
-              self.delete(self.keys.sort.last)
               @parsing = false
               return false
             elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/