Project

General

Profile

Patch #1469 ยป mercurial_repository.diff

Pierre Paysant-Le Roux, 2008-06-16 18:34

View differences:

test/unit/mercurial_adapter_test.rb (working copy)
4 4
  
5 5
  class MercurialAdapterTest < Test::Unit::TestCase
6 6
    
7
    TEMPLATES_DIR = "#{RAILS_ROOT}/extra/mercurial"
8
    TEMPLATE_NAME = "hg-template"
9
    TEMPLATE_EXTENSION = "tmpl"
7
    TEMPLATES_DIR = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATES_DIR
8
    TEMPLATE_NAME = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATE_NAME
9
    TEMPLATE_EXTENSION = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATE_EXTENSION
10 10
    
11 11
    REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/mercurial_repository'
12 12
    
lib/redmine/scm/adapters/mercurial_adapter.rb (working copy)
192 192
                        end
193 193
        end
194 194
        
195
        private
196
        
197 195
        def hgversion_from_command_line
198 196
          @hgversion ||= %x{#{HG_BIN} --version}.match(/\(version (.*)\)/)[1]
199 197
        end
    (1-1/1)