]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: update test repository (#2799, #4741, #8030).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 May 2011 01:14:07 +0000 (01:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 May 2011 01:14:07 +0000 (01:14 +0000)
* Shared repository with trees (format: 2a)
* clone original branch to *trunk*
* set append_revisions_only = true at trunk/.bzr/branch/branch.conf

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5932 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/repositories/bazaar_repository.tar.gz
test/functional/repositories_bazaar_controller_test.rb
test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
test/unit/repository_bazaar_test.rb

index 621c2f145e71c37be837b7bad3f0c9b28096a0ea..59edee5d13636bd57a044ff593e829f4613db4a4 100644 (file)
Binary files a/test/fixtures/repositories/bazaar_repository.tar.gz and b/test/fixtures/repositories/bazaar_repository.tar.gz differ
index 52b6ba6ddfa641bea4a95481b410caa81b6f4b62..9b50e899978e18586a32932128632c23ba47b904 100644 (file)
@@ -26,7 +26,8 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
            :repositories, :enabled_modules
 
   # No '..' in the repository path
-  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
+  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + 
+                         '/tmp/test/bazaar_repository/trunk'
   PRJ_ID = 3
 
   def setup
index 427c3b5e22760afa563ac0521c15dcf9f79382c6..4a1edb3995da95a263db0c5219fb01dc88ce8e44 100644 (file)
@@ -4,7 +4,8 @@ begin
 
   class BazaarAdapterTest < ActiveSupport::TestCase
 
-    REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
+    REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + 
+                        '/tmp/test/bazaar_repository/trunk'
     REPOSITORY_PATH.gsub!(/\/+/, '/')
 
     if File.directory?(REPOSITORY_PATH)
@@ -78,7 +79,7 @@ begin
       end
 
       def test_append_revisions_only
-        assert_equal false, @adapter.append_revisions_only
+        assert_equal true, @adapter.append_revisions_only
       end
 
       def test_info_not_nil
index 038db8f23526dff599650287621d9d0b9dd14280..c19ba912cab76fc4bb29074e0893fc0abd6d8649 100644 (file)
@@ -21,7 +21,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
   fixtures :projects
 
   # No '..' in the repository path
-  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
+  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + 
+                         '/tmp/test/bazaar_repository/trunk'
   REPOSITORY_PATH.gsub!(/\/+/, '/')
 
   def setup