##// END OF EJS Templates
scm: mercurial: add test of copied file from_revision node id at unit model test....
Toshi MARUYAMA -
r5361:94f71773b643
parent child
Show More
@@ -176,6 +176,7 class RepositoryMercurialTest < ActiveSupport::TestCase
176 assert_equal 'A', c1[0].action
176 assert_equal 'A', c1[0].action
177 assert_equal '/sql_escape/percent%dir/percentfile1.txt', c1[0].path
177 assert_equal '/sql_escape/percent%dir/percentfile1.txt', c1[0].path
178 assert_equal '/sql_escape/percent%dir/percent%file1.txt', c1[0].from_path
178 assert_equal '/sql_escape/percent%dir/percent%file1.txt', c1[0].from_path
179 assert_equal '3a330eb32958', c1[0].from_revision
179
180
180 assert_equal 'A', c1[1].action
181 assert_equal 'A', c1[1].action
181 assert_equal '/sql_escape/underscore_dir/understrike-file.txt', c1[1].path
182 assert_equal '/sql_escape/underscore_dir/understrike-file.txt', c1[1].path
@@ -188,6 +189,7 class RepositoryMercurialTest < ActiveSupport::TestCase
188 assert_equal 'A', c2[0].action
189 assert_equal 'A', c2[0].action
189 assert_equal '/README (1)[2]&,%.-3_4', c2[0].path
190 assert_equal '/README (1)[2]&,%.-3_4', c2[0].path
190 assert_equal '/README', c2[0].from_path
191 assert_equal '/README', c2[0].from_path
192 assert_equal '933ca60293d7', c2[0].from_revision
191
193
192 cs3 = @repository.changesets.find_by_revision('19')
194 cs3 = @repository.changesets.find_by_revision('19')
193 c3 = cs3.changes
195 c3 = cs3.changes
@@ -195,6 +197,7 class RepositoryMercurialTest < ActiveSupport::TestCase
195 assert_equal 'A', c3[0].action
197 assert_equal 'A', c3[0].action
196 assert_equal "/latin-1-dir/test-#{@char_1}-1.txt", c3[0].path
198 assert_equal "/latin-1-dir/test-#{@char_1}-1.txt", c3[0].path
197 assert_equal "/latin-1-dir/test-#{@char_1}.txt", c3[0].from_path
199 assert_equal "/latin-1-dir/test-#{@char_1}.txt", c3[0].from_path
200 assert_equal '5d9891a1b425', c3[0].from_revision
198 end
201 end
199
202
200 def test_find_changeset_by_name
203 def test_find_changeset_by_name
General Comments 0
You need to be logged in to leave comments. Login now