/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/stats/test_stats.py

  • Committer: Jelmer Vernooij
  • Date: 2018-04-02 00:52:27 UTC
  • mfrom: (6939 work)
  • mto: This revision was merged to the branch mainline in revision 7274.
  • Revision ID: jelmer@jelmer.uk-20180402005227-pecflp1mvdjrjqd6
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
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')
26
26
 
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,
33
33
                                                        ['1', '2', '3'])
34
34
        self.assertEqual({('Fero', ''): ('Fero', ''),
37
37
 
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,
44
44
                                                        ['1', '2', '3'])
45
45
        self.assertEqual({('Fero', ''): ('Fero', ''),
46
46
                          ('FERO', ''): ('Fero', ''),
47
47
                         }, committers)
 
48
        self.assertEquals(['1', '2', '3'], sorted([r.revision_id for r in revs]))
48
49
 
49
50
 
50
51
class TestCollapseByPerson(TestCase):