~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
    prevanno=''
41
41
    annotation = list(_annotate_file(branch, rev_id, file_id))
42
 
    if len(annotation) == 0:
43
 
        max_origin_len = 0
44
 
    else:
45
 
        max_origin_len = max(len(origin) for origin in set(x[1] for x in annotation))
 
42
    max_origin_len = max(len(origin) for origin in set(x[1] for x in annotation))
46
43
    for (revno_str, author, date_str, line_rev_id, text ) in annotation:
47
44
        if verbose:
48
45
            anno = '%5s %-*s %8s ' % (revno_str, max_origin_len, author, date_str)