comparison rhodecode/tests/vcs/test_changesets.py @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents 91f440a11b94
children 7e5f8c12a3fc
comparison
equal deleted inserted replaced
4115:8b7294a804a0 4116:ffd45b185016
133 133
134 def test_get_changeset_by_tag(self): 134 def test_get_changeset_by_tag(self):
135 for tag, sha in self.repo.tags.iteritems(): 135 for tag, sha in self.repo.tags.iteritems():
136 self.assertEqual(sha, self.repo.get_changeset(tag).raw_id) 136 self.assertEqual(sha, self.repo.get_changeset(tag).raw_id)
137 137
138 def test_get_changeset_parents(self):
139 for test_rev in [1, 2, 3]:
140 sha = self.repo.get_changeset(test_rev-1)
141 self.assertEqual([sha], self.repo.get_changeset(test_rev).parents)
142
143 def test_get_changeset_children(self):
144 for test_rev in [1, 2, 3]:
145 sha = self.repo.get_changeset(test_rev+1)
146 self.assertEqual([sha], self.repo.get_changeset(test_rev).children)
147
138 148
139 class ChangesetsTestCaseMixin(BackendTestMixin): 149 class ChangesetsTestCaseMixin(BackendTestMixin):
140 recreate_repo_per_test = False 150 recreate_repo_per_test = False
141 151
142 @classmethod 152 @classmethod