1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -65,19 +65,23 begin | |||||
65 | @adapter.branches.each do |b| |
|
65 | @adapter.branches.each do |b| | |
66 | brs << b |
|
66 | brs << b | |
67 | end |
|
67 | end | |
68 |
assert_equal |
|
68 | assert_equal 6, brs.length | |
69 |
br_issue_8857 = brs[ |
|
69 | br_issue_8857 = brs[0] | |
70 | assert_equal 'issue-8857', br_issue_8857.to_s |
|
70 | assert_equal 'issue-8857', br_issue_8857.to_s | |
71 | assert_equal '2a682156a3b6e77a8bf9cd4590e8db757f3c6c78', br_issue_8857.revision |
|
71 | assert_equal '2a682156a3b6e77a8bf9cd4590e8db757f3c6c78', br_issue_8857.revision | |
72 | assert_equal br_issue_8857.scmid, br_issue_8857.revision |
|
72 | assert_equal br_issue_8857.scmid, br_issue_8857.revision | |
73 |
br_latin_1_path = brs[ |
|
73 | br_latin_1_path = brs[1] | |
74 | assert_equal 'latin-1-path-encoding', br_latin_1_path.to_s |
|
74 | assert_equal 'latin-1-path-encoding', br_latin_1_path.to_s | |
75 | assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', br_latin_1_path.revision |
|
75 | assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', br_latin_1_path.revision | |
76 | assert_equal br_latin_1_path.scmid, br_latin_1_path.revision |
|
76 | assert_equal br_latin_1_path.scmid, br_latin_1_path.revision | |
77 |
br_master = brs[ |
|
77 | br_master = brs[2] | |
78 | assert_equal 'master', br_master.to_s |
|
78 | assert_equal 'master', br_master.to_s | |
79 | assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', br_master.revision |
|
79 | assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', br_master.revision | |
80 | assert_equal br_master.scmid, br_master.revision |
|
80 | assert_equal br_master.scmid, br_master.revision | |
|
81 | br_master_20120212 = brs[3] | |||
|
82 | assert_equal 'master-20120212', br_master_20120212.to_s | |||
|
83 | assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', br_master_20120212.revision | |||
|
84 | assert_equal br_master_20120212.scmid, br_master_20120212.revision | |||
81 | br_latin_1 = brs[-2] |
|
85 | br_latin_1 = brs[-2] | |
82 | assert_equal 'test-latin-1', br_latin_1.to_s |
|
86 | assert_equal 'test-latin-1', br_latin_1.to_s | |
83 | assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', br_latin_1.revision |
|
87 | assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', br_latin_1.revision |
@@ -24,6 +24,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
24 | REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin? |
|
24 | REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin? | |
25 |
|
25 | |||
26 | NUM_REV = 28 |
|
26 | NUM_REV = 28 | |
|
27 | NUM_HEAD = 6 | |||
27 |
|
28 | |||
28 | FELIX_HEX = "Felix Sch\xC3\xA4fer" |
|
29 | FELIX_HEX = "Felix Sch\xC3\xA4fer" | |
29 | CHAR_1_HEX = "\xc3\x9c" |
|
30 | CHAR_1_HEX = "\xc3\x9c" | |
@@ -87,7 +88,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
87 | assert_equal "README", change.path |
|
88 | assert_equal "README", change.path | |
88 | assert_equal "A", change.action |
|
89 | assert_equal "A", change.action | |
89 |
|
90 | |||
90 |
assert_equal |
|
91 | assert_equal NUM_HEAD, @repository.extra_info["heads"].size | |
91 | end |
|
92 | end | |
92 |
|
93 | |||
93 | def test_fetch_changesets_incremental |
|
94 | def test_fetch_changesets_incremental | |
@@ -96,7 +97,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
96 | @project.reload |
|
97 | @project.reload | |
97 | assert_equal NUM_REV, @repository.changesets.count |
|
98 | assert_equal NUM_REV, @repository.changesets.count | |
98 | extra_info_heads = @repository.extra_info["heads"].dup |
|
99 | extra_info_heads = @repository.extra_info["heads"].dup | |
99 |
assert_equal |
|
100 | assert_equal NUM_HEAD, extra_info_heads.size | |
100 | extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" } |
|
101 | extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" } | |
101 | assert_equal 4, extra_info_heads.size |
|
102 | assert_equal 4, extra_info_heads.size | |
102 |
|
103 | |||
@@ -124,7 +125,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
124 | @repository.fetch_changesets |
|
125 | @repository.fetch_changesets | |
125 | @project.reload |
|
126 | @project.reload | |
126 | assert_equal NUM_REV, @repository.changesets.count |
|
127 | assert_equal NUM_REV, @repository.changesets.count | |
127 |
assert_equal |
|
128 | assert_equal NUM_HEAD, @repository.extra_info["heads"].size | |
128 | assert @repository.extra_info["heads"].index("83ca5fd546063a3c7dc2e568ba3355661a9e2b2c") |
|
129 | assert @repository.extra_info["heads"].index("83ca5fd546063a3c7dc2e568ba3355661a9e2b2c") | |
129 | end |
|
130 | end | |
130 |
|
131 | |||
@@ -134,7 +135,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
134 | @project.reload |
|
135 | @project.reload | |
135 | assert_equal NUM_REV, @repository.changesets.count |
|
136 | assert_equal NUM_REV, @repository.changesets.count | |
136 | extra_info_heads = @repository.extra_info["heads"].dup |
|
137 | extra_info_heads = @repository.extra_info["heads"].dup | |
137 |
assert_equal |
|
138 | assert_equal NUM_HEAD, extra_info_heads.size | |
138 | extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" } |
|
139 | extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" } | |
139 | assert_equal 4, extra_info_heads.size |
|
140 | assert_equal 4, extra_info_heads.size | |
140 |
|
141 | |||
@@ -247,7 +248,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
247 | @repository.fetch_changesets |
|
248 | @repository.fetch_changesets | |
248 | @project.reload |
|
249 | @project.reload | |
249 | assert_equal NUM_REV, @repository.changesets.count |
|
250 | assert_equal NUM_REV, @repository.changesets.count | |
250 |
assert_equal |
|
251 | assert_equal NUM_HEAD, @repository.extra_info["heads"].size | |
251 |
|
252 | |||
252 | assert_equal 0, @repository.extra_info["db_consistent"]["ordering"] |
|
253 | assert_equal 0, @repository.extra_info["db_consistent"]["ordering"] | |
253 | end |
|
254 | end |
General Comments 0
You need to be logged in to leave comments.
Login now