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

  • Committer: John Arbash Meinel
  • Date: 2006-12-13 19:04:53 UTC
  • mto: This revision was merged to the branch mainline in revision 2186.
  • Revision ID: john@arbash-meinel.com-20061213190453-s1723p4s3d8lor2v
Use shortened revnos unless --long is supplied

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        max_origin_len = max(len(origin) for origin in set(x[1] for x in annotation))
50
50
        max_revno_len = max(len(x[0]) for x in annotation)
51
51
 
 
52
    if not verbose:
 
53
        max_revno_len = min(max_revno_len, 10)
 
54
 
52
55
    for (revno_str, author, date_str, line_rev_id, text ) in annotation:
53
56
        if verbose:
54
57
            anno = '%-*s %-*s %8s ' % (max_revno_len, revno_str, max_origin_len, author, date_str)
55
58
        else:
 
59
            if len(revno_str) > max_revno_len:
 
60
                revno_str = revno_str[:9] + '>'
56
61
            anno = "%-*s %-7s " % (max_revno_len, revno_str, author[:7] )
57
62
 
58
63
        if anno.lstrip() == "" and full: anno = prevanno