/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/log.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-06 23:06:25 UTC
  • mto: This revision was merged to the branch mainline in revision 7320.
  • Revision ID: jelmer@jelmer.uk-20190606230625-eow7ad5vgszpy14q
Remove unused specific_fileid argument to log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
 
137
137
def show_log(branch,
138
138
             lf,
139
 
             specific_fileid=None,
140
139
             verbose=False,
141
140
             direction='reverse',
142
141
             start_revision=None,
154
153
 
155
154
    :param lf: The LogFormatter object showing the output.
156
155
 
157
 
    :param specific_fileid: If not None, list only the commits affecting the
158
 
        specified file, rather than all commits.
159
 
 
160
156
    :param verbose: If True show added/changed/deleted/renamed files.
161
157
 
162
158
    :param direction: 'reverse' (default) is latest to earliest; 'forward' is
177
173
    :param match: Dictionary of search lists to use when matching revision
178
174
      properties.
179
175
    """
180
 
    # Convert old-style parameters to new-style parameters
181
 
    if specific_fileid is not None:
182
 
        file_ids = [specific_fileid]
183
 
    else:
184
 
        file_ids = None
185
176
    if verbose:
186
 
        if file_ids:
187
 
            delta_type = 'partial'
188
 
        else:
189
 
            delta_type = 'full'
 
177
        delta_type = 'full'
190
178
    else:
191
179
        delta_type = None
192
180
    if show_diff:
193
 
        if file_ids:
194
 
            diff_type = 'partial'
195
 
        else:
196
 
            diff_type = 'full'
 
181
        diff_type = 'full'
197
182
    else:
198
183
        diff_type = None
199
184
 
213
198
        raise errors.InvalidRevisionNumber(end_revision.revno)
214
199
 
215
200
    # Build the request and execute it
216
 
    rqst = make_log_request_dict(direction=direction, specific_fileids=file_ids,
217
 
                                 start_revision=start_revision, end_revision=end_revision,
218
 
                                 limit=limit, message_search=search,
219
 
                                 delta_type=delta_type, diff_type=diff_type)
 
201
    rqst = make_log_request_dict(
 
202
        direction=direction,
 
203
        start_revision=start_revision, end_revision=end_revision,
 
204
        limit=limit, message_search=search,
 
205
        delta_type=delta_type, diff_type=diff_type)
220
206
    Logger(branch, rqst).show(lf)
221
207
 
222
208
 
1949
1935
        to_file.write('Added Revisions:\n')
1950
1936
        show_log(branch,
1951
1937
                 lf,
1952
 
                 None,
1953
1938
                 verbose=False,
1954
1939
                 direction='forward',
1955
1940
                 start_revision=base_idx + 1,
2034
2019
    if new_history != []:
2035
2020
        output.write('Added Revisions:\n')
2036
2021
        start_revno = new_revno - len(new_history) + 1
2037
 
        show_log(branch, lf, None, verbose=False, direction='forward',
 
2022
        show_log(branch, lf, verbose=False, direction='forward',
2038
2023
                 start_revision=start_revno)
2039
2024
 
2040
2025