/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: Jelmer Vernooij
  • Date: 2018-10-29 11:27:33 UTC
  • mto: This revision was merged to the branch mainline in revision 7170.
  • Revision ID: jelmer@jelmer.uk-20181029112733-bjvm24z12svwl53m
Get rid of file_ids in most of Tree.

Show diffs side-by-side

added added

removed removed

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