10
10
def test_simple(self):
11
11
wt = self.make_branch_and_tree('.')
12
wt.commit(message='1', committer='Fero <fero@example.com>', rev_id='1')
13
wt.commit(message='2', committer='Fero <fero@example.com>', rev_id='2')
14
wt.commit(message='3', committer='Jano <jano@example.com>', rev_id='3')
12
wt.commit(message='1', committer='Fero <fero@example.com>', rev_id=b'1')
13
wt.commit(message='2', committer='Fero <fero@example.com>', rev_id=b'2')
14
wt.commit(message='3', committer='Jano <jano@example.com>', rev_id=b'3')
15
15
wt.commit(message='4', committer='Jano <jano@example.com>',
16
authors=['Vinco <vinco@example.com>'], rev_id='4')
17
wt.commit(message='5', committer='Ferko <fero@example.com>', rev_id='5')
16
authors=['Vinco <vinco@example.com>'], rev_id=b'4')
17
wt.commit(message='5', committer='Ferko <fero@example.com>', rev_id=b'5')
18
18
revs, committers = get_revisions_and_committers(wt.branch.repository,
19
19
['1', '2', '3', '4', '5'])
20
20
fero = ('Fero', 'fero@example.com')
27
27
def test_empty_email(self):
28
28
wt = self.make_branch_and_tree('.')
29
wt.commit(message='1', committer='Fero', rev_id='1')
30
wt.commit(message='2', committer='Fero', rev_id='2')
31
wt.commit(message='3', committer='Jano', rev_id='3')
29
wt.commit(message='1', committer='Fero', rev_id=b'1')
30
wt.commit(message='2', committer='Fero', rev_id=b'2')
31
wt.commit(message='3', committer='Jano', rev_id=b'3')
32
32
revs, committers = get_revisions_and_committers(wt.branch.repository,
34
34
self.assertEqual({('Fero', ''): ('Fero', ''),
38
38
def test_different_case(self):
39
39
wt = self.make_branch_and_tree('.')
40
wt.commit(message='1', committer='Fero', rev_id='1')
41
wt.commit(message='2', committer='Fero', rev_id='2')
42
wt.commit(message='3', committer='FERO', rev_id='3')
40
wt.commit(message='1', committer='Fero', rev_id=b'1')
41
wt.commit(message='2', committer='Fero', rev_id=b'2')
42
wt.commit(message='3', committer='FERO', rev_id=b'3')
43
43
revs, committers = get_revisions_and_committers(wt.branch.repository,
45
45
self.assertEqual({('Fero', ''): ('Fero', ''),
46
46
('FERO', ''): ('Fero', ''),
48
self.assertEquals(['1', '2', '3'], sorted([r.revision_id for r in revs]))
50
51
class TestCollapseByPerson(TestCase):