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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 15:19:49 UTC
  • mfrom: (7141.7.6 no-file-ids)
  • Revision ID: breezy.the.bot@gmail.com-20181116151949-hrmuv6s7ow1cqdhi
Drop file_id argument from read functions in Tree.

Merged from https://code.launchpad.net/~jelmer/brz/no-file-ids/+merge/357984

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
 
55
55
def annotate_file_tree(tree, path, to_file, verbose=False, full=False,
56
 
                       show_ids=False, branch=None, file_id=None):
 
56
                       show_ids=False, branch=None):
57
57
    """Annotate file_id in a tree.
58
58
 
59
59
    The tree should already be read_locked() when annotate_file_tree is called.
65
65
        reasonable text width.
66
66
    :param full: XXXX Not sure what this does.
67
67
    :param show_ids: Show revision ids in the annotation output.
68
 
    :param file_id: The file_id to annotate (must match file path)
69
68
    :param branch: Branch to use for revision revno lookups
70
69
    """
71
70
    if branch is None:
75
74
 
76
75
    encoding = osutils.get_terminal_encoding()
77
76
    # Handle the show_ids case
78
 
    annotations = list(tree.annotate_iter(path, file_id))
 
77
    annotations = list(tree.annotate_iter(path))
79
78
    if show_ids:
80
79
        return _show_id_annotations(annotations, to_file, full, encoding)
81
80