|
|
|
@ -119,7 +119,7 @@ describe Repository::Git, type: :model do |
|
|
|
|
'deff712f05a90d96edbd70facc47d944be5897e3', |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', nil) |
|
|
|
|
assert_equal [ |
|
|
|
@ -129,65 +129,65 @@ describe Repository::Git, type: :model do |
|
|
|
|
'61b685fbe55ab05b5ac68402d5720c1a6ac973d1', |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
# with path, revision and limit |
|
|
|
|
changesets = @repository.latest_changesets('images', '899a15dba') |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('images', '899a15dba', 1) |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', '899a15dba') |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', '899a15dba', 1) |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
# with path, tag and limit |
|
|
|
|
changesets = @repository.latest_changesets('images', 'tag01.annotated') |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('images', 'tag01.annotated', 1) |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', 'tag01.annotated') |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', 'tag01.annotated', 1) |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
# with path, branch and limit |
|
|
|
|
changesets = @repository.latest_changesets('images', 'test_branch') |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('images', 'test_branch', 1) |
|
|
|
|
assert_equal [ |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', 'test_branch') |
|
|
|
|
assert_equal [ |
|
|
|
@ -195,13 +195,13 @@ describe Repository::Git, type: :model do |
|
|
|
|
'61b685fbe55ab05b5ac68402d5720c1a6ac973d1', |
|
|
|
|
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9', |
|
|
|
|
'7234cb2750b63f47bff735edc50a1c0a433c2518', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets('README', 'test_branch', 2) |
|
|
|
|
assert_equal [ |
|
|
|
|
'713f4944648826f558cf548222f813dabe7cbb04', |
|
|
|
|
'61b685fbe55ab05b5ac68402d5720c1a6ac973d1', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
# latin-1 encoding path |
|
|
|
|
changesets = @repository.latest_changesets( |
|
|
|
@ -209,13 +209,13 @@ describe Repository::Git, type: :model do |
|
|
|
|
assert_equal [ |
|
|
|
|
'64f1f3e89ad1cb57976ff0ad99a107012ba3481d', |
|
|
|
|
'4fc55c43bf3d3dc2efb66145365ddc17639ce81e', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
|
|
|
|
|
changesets = @repository.latest_changesets( |
|
|
|
|
"latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89', 1) |
|
|
|
|
assert_equal [ |
|
|
|
|
'64f1f3e89ad1cb57976ff0ad99a107012ba3481d', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it 'should latest changesets latin 1 dir' do |
|
|
|
@ -228,7 +228,7 @@ describe Repository::Git, type: :model do |
|
|
|
|
"latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed') |
|
|
|
|
assert_equal [ |
|
|
|
|
'1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', |
|
|
|
|
], changesets.collect(&:revision) |
|
|
|
|
], changesets.map(&:revision) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|