~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/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:
304
304
 
305
305
 
306
306
class Logger(object):
307
 
    """An object the generates, formats and displays a log."""
 
307
    """An object that generates, formats and displays a log."""
308
308
 
309
309
    def __init__(self, branch, rqst):
310
310
        """Create a Logger.
597
597
        else:
598
598
            # not obvious
599
599
            return False
 
600
    # if either start or end is not specified then we use either the first or
 
601
    # the last revision and *they* are obvious ancestors.
600
602
    return True
601
603
 
602
604
 
664
666
                depth_adjustment = merge_depth
665
667
            if depth_adjustment:
666
668
                if merge_depth < depth_adjustment:
 
669
                    # From now on we reduce the depth adjustement, this can be
 
670
                    # surprising for users. The alternative requires two passes
 
671
                    # which breaks the fast display of the first revision
 
672
                    # though.
667
673
                    depth_adjustment = merge_depth
668
674
                merge_depth -= depth_adjustment
669
675
            yield rev_id, '.'.join(map(str, revno)), merge_depth