@@ -187,8 +187,14 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
187 | 187 | |
|
188 | 188 | changesets = @repository.latest_changesets(path, '12', 1) |
|
189 | 189 | assert_equal %w|12|, changesets.collect(&:revision) |
|
190 | end | |
|
191 | ||
|
192 | def test_latest_changesets_tag | |
|
193 | assert_equal 0, @repository.changesets.count | |
|
194 | @repository.fetch_changesets | |
|
195 | @project.reload | |
|
196 | assert_equal NUM_REV, @repository.changesets.count | |
|
190 | 197 | |
|
191 | # tag | |
|
192 | 198 | changesets = @repository.latest_changesets('', 'tag_test.00') |
|
193 | 199 | assert_equal %w|5 4 3 2 1 0|, changesets.collect(&:revision) |
|
194 | 200 | |
@@ -200,8 +206,14 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
200 | 206 | |
|
201 | 207 | changesets = @repository.latest_changesets('sources', 'tag_test.00', 2) |
|
202 | 208 | assert_equal %w|4 3|, changesets.collect(&:revision) |
|
209 | end | |
|
210 | ||
|
211 | def test_latest_changesets_branch | |
|
212 | assert_equal 0, @repository.changesets.count | |
|
213 | @repository.fetch_changesets | |
|
214 | @project.reload | |
|
215 | assert_equal NUM_REV, @repository.changesets.count | |
|
203 | 216 | |
|
204 | # named branch | |
|
205 | 217 | if @repository.scm.class.client_version_above?([1, 6]) |
|
206 | 218 | changesets = @repository.latest_changesets('', @branch_char_1) |
|
207 | 219 | assert_equal %w|27 26|, changesets.collect(&:revision) |
General Comments 0
You need to be logged in to leave comments.
Login now