~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-13 22:23:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2186.
  • Revision ID: john@arbash-meinel.com-20061213222308-e1cf1r9zhde76l8e
Add tests for annotate with dotted revnos.

Show diffs side-by-side

added added

removed removed

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