comparison tests/test_tags.py @ 381:a441ba143ac8

tags: fix handling for certain nonstandard tag layouts.
author Augie Fackler <durin42@gmail.com>
date Sat, 30 May 2009 20:18:14 -0500
parents e1b23a6ca093
children a8811c84e3ee
comparison
equal deleted inserted replaced
380:639105d25a2f 381:a441ba143ac8
71 self.assertEqual( 71 self.assertEqual(
72 repo.tags(), 72 repo.tags(),
73 {'tip': 'g\xdd\xcd\x93\x03g\x1e\x7f\xa6-[V%\x99\x07\xd3\x9d>(\x94', 73 {'tip': 'g\xdd\xcd\x93\x03g\x1e\x7f\xa6-[V%\x99\x07\xd3\x9d>(\x94',
74 'new_tag': '=\xb8^\xb5\x18\xa9M\xdb\xf9\xb62Z\xa0\xb5R6+\xfe6.'}) 74 'new_tag': '=\xb8^\xb5\x18\xa9M\xdb\xf9\xb62Z\xa0\xb5R6+\xfe6.'})
75 75
76 def test_tags_in_unusual_location(self):
77 repo = self._load_fixture_and_fetch('unusual_tags.svndump')
78 branches = set(repo[h].extra()['branch']
79 for h in repo.heads(closed=False))
80 self.assertEqual(branches, set(['default', 'dev_branch']))
81 tags = repo.tags()
82 del tags['tip']
83 self.assertEqual(
84 tags,
85 {'blah/trunktag': '\xd3$@\xd7\xd8Nu\xce\xa6%\xf1u\xd9b\x1a\xb2\x81\xc2\xb0\xb1',
86 'versions/branch_version': 'I\x89\x1c>z#\xfc._K#@:\xd6\x1f\x96\xd6\x83\x1b|',
87 })
88
76 89
77 def suite(): 90 def suite():
78 return unittest.TestLoader().loadTestsFromTestCase(TestTags) 91 return unittest.TestLoader().loadTestsFromTestCase(TestTags)