~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2005-05-26 16:58:09 UTC
  • Revision ID: mbp@sourcefrog.net-20050526165809-70901dd62ebe9b91
- New form 'bzr log -r FROM:TO' 
  patch from John A Meinel

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
             verbose=False,
90
90
             show_ids=False,
91
91
             to_file=None,
92
 
             direction='reverse'):
 
92
             direction='reverse',
 
93
             start_revision=None,
 
94
             end_revision=None):
93
95
    """Write out human-readable log of commits to this branch.
94
96
 
95
97
    specific_fileid
113
115
    direction
114
116
        'reverse' (default) is latest to earliest;
115
117
        'forward' is earliest to latest.
 
118
 
 
119
    start_revision
 
120
        If not None, only show revisions >= start_revision
 
121
 
 
122
    end_revision
 
123
        If not None, only show revisions <= end_revision
116
124
    """
117
125
    from osutils import format_date
118
126
    from errors import BzrCheckError
140
148
        if specific_fileid:
141
149
            if not delta.touches_file_id(specific_fileid):
142
150
                continue
 
151
 
 
152
        if start_revision is not None and revno < start_revision:
 
153
            continue
 
154
 
 
155
        if end_revision is not None and revno > end_revision:
 
156
            continue
143
157
        
144
158
        if not verbose:
145
159
            # although we calculated it, throw it away without display