~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-15 18:14:51 UTC
  • mto: (4955.4.4 respect-direction)
  • mto: This revision was merged to the branch mainline in revision 4985.
  • Revision ID: v.ladeuil+lp@free.fr-20100115181451-vrlkt09fsyv25idg
Cleanup.

* bzrlib/tests/test_log.py:
(TestGetViewRevisions.test_file_id_for_range): Fix too long lines.

* bzrlib/log.py:
(Logger): Fix typo in doc string.
(_is_obvious_ancestor): Add comment.
(_graph_view_revisions): Add comment.

* bzrlib/builtins.py:
(cmd_log): bzr-gtk provides viz but no glog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1164
1164
 
1165
1165
        rev_3a = rev_from_rev_id('3a', b)
1166
1166
        rev_4b = rev_from_rev_id('4b', b)
1167
 
        self.assertEqual([('3c', '3', 0), ('3b', '2.2.1', 1), ('3a', '2.1.1', 2)],
 
1167
        self.assertEqual([('3c', '3', 0), ('3b', '2.2.1', 1),
 
1168
                          ('3a', '2.1.1', 2)],
1168
1169
                          view_revs(rev_3a, rev_4b, 'f-id', 'reverse'))
1169
1170
        # Note: 3c still appears before 3a here because of depth-based sorting
1170
 
        self.assertEqual([('3c', '3', 0), ('3b', '2.2.1', 1), ('3a', '2.1.1', 2)],
 
1171
        self.assertEqual([('3c', '3', 0), ('3b', '2.2.1', 1),
 
1172
                          ('3a', '2.1.1', 2)],
1171
1173
                          view_revs(rev_3a, rev_4b, 'f-id', 'forward'))
1172
1174
 
1173
1175