/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 bzrlib/tests/test_log.py

  • Committer: John Arbash Meinel
  • Date: 2009-08-17 19:31:29 UTC
  • mto: This revision was merged to the branch mainline in revision 4620.
  • Revision ID: john@arbash-meinel.com-20090817193129-0512zwglhybx6eiq
Since the merge depth changed, it causes log to change slightly as well.
Now the intermediate node is considered to be merging the file change, and thus it
also gets included in the per-file output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1310
1310
        revisions = list(log.get_view_revisions(
1311
1311
                mainline_revs, rev_nos, b, 'forward'))
1312
1312
        expected = [('1', '1', 0), ('2', '2', 0), ('3c', '3', 0),
1313
 
                    ('3a', '2.1.1', 1), ('3b', '2.2.1', 1), ('4b', '4', 0),
 
1313
                    ('3b', '2.2.1', 1), ('3a', '2.1.1', 2), ('4b', '4', 0),
1314
1314
                    ('4a', '2.2.2', 1)]
1315
1315
        self.assertEqual(expected, revisions)
1316
1316
        revisions = list(log.get_view_revisions(
1343
1343
 
1344
1344
        rev_3a = rev_from_rev_id('3a', b)
1345
1345
        rev_4b = rev_from_rev_id('4b', b)
1346
 
        self.assertEqual([('3c', '3', 0), ('3a', '2.1.1', 1)],
 
1346
        self.assertEqual([('3c', '3', 0), ('3b', '2.2.1', 1), ('3a', '2.1.1', 2)],
1347
1347
                          view_revs(rev_3a, rev_4b, 'f-id', 'reverse'))
1348
1348
        # Note: 3c still appears before 3a here because of depth-based sorting
1349
 
        self.assertEqual([('3c', '3', 0), ('3a', '2.1.1', 1)],
 
1349
        self.assertEqual([('3c', '3', 0), ('3b', '2.2.1', 1), ('3a', '2.1.1', 2)],
1350
1350
                          view_revs(rev_3a, rev_4b, 'f-id', 'forward'))
1351
1351
 
1352
1352