Show More
@@ -304,27 +304,25 b' class TestGitChangeset(object):' | |||||
304 | .get_node('index.rst') |
|
304 | .get_node('index.rst') | |
305 |
|
305 | |||
306 | def test_branch_and_tags(self): |
|
306 | def test_branch_and_tags(self): | |
307 | """ |
|
307 | # Those tests seem to show wrong results: | |
|
308 | # in Git, only heads have a branch - most changesets don't | |||
308 | rev0 = self.repo.revisions[0] |
|
309 | rev0 = self.repo.revisions[0] | |
309 | chset0 = self.repo.get_changeset(rev0) |
|
310 | chset0 = self.repo.get_changeset(rev0) | |
310 |
assert chset0.branch |
|
311 | assert chset0.branch is None # should be 'master'? | |
311 | assert chset0.tags == [] |
|
312 | assert chset0.tags == [] | |
312 |
|
313 | |||
313 | rev10 = self.repo.revisions[10] |
|
314 | rev10 = self.repo.revisions[10] | |
314 | chset10 = self.repo.get_changeset(rev10) |
|
315 | chset10 = self.repo.get_changeset(rev10) | |
315 |
assert chset10.branch |
|
316 | assert chset10.branch is None # should be 'master'? | |
316 | assert chset10.tags == [] |
|
317 | assert chset10.tags == [] | |
317 |
|
318 | |||
318 | rev44 = self.repo.revisions[44] |
|
319 | rev44 = self.repo.revisions[44] | |
319 | chset44 = self.repo.get_changeset(rev44) |
|
320 | chset44 = self.repo.get_changeset(rev44) | |
320 |
assert chset44.branch |
|
321 | assert chset44.branch is None # should be 'web-branch'? | |
321 |
|
322 | |||
322 | tip = self.repo.get_changeset('tip') |
|
323 | tip = self.repo.get_changeset('tip') | |
323 | assert 'tip' in tip.tags |
|
324 | assert 'tip' not in tip.tags # it should be? | |
324 | """ |
|
325 | assert not tip.tags # how it is! | |
325 | # Those tests would fail - branches are now going |
|
|||
326 | # to be changed at main API in order to support git backend |
|
|||
327 | pass |
|
|||
328 |
|
326 | |||
329 | def _test_slices(self, limit, offset): |
|
327 | def _test_slices(self, limit, offset): | |
330 | count = self.repo.count() |
|
328 | count = self.repo.count() |
General Comments 0
You need to be logged in to leave comments.
Login now