]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add unit adapter test repository for path contains space (#2664,...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 4 Mar 2011 08:08:13 +0000 (08:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 4 Mar 2011 08:08:13 +0000 (08:08 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4998 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb

index 8e971ec96108290349d4cf0d9eaeac6b9b057840..b89caa5b978a70bfb6be9e930e4d121bd717cb93 100644 (file)
@@ -261,6 +261,18 @@ begin
         assert_equal bm, @adapter.branchmap
       end
 
+      def test_path_space
+        p = 'README (1)[2]&,%.-3_4'
+        [15, '933ca60293d7'].each do |r1|
+          assert @adapter.diff(p, r1)
+          assert @adapter.cat(p, r1)
+          assert_equal 1, @adapter.annotate(p, r1).lines.length
+          [25, 'afc61e85bde7'].each do |r2|
+            assert @adapter.diff(p, r1, r2)
+          end      
+        end      
+      end
+
       private
 
       def test_hgversion_for(hgversion, version)