~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

  • Committer: Martin Pool
  • Date: 2006-03-10 06:29:53 UTC
  • mfrom: (1608 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060310062953-bc1c7ade75c89a7a
[merge] bzr.dev; pycurl not updated for readv yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            (revno_str, author, date_str) = ('','','')
65
65
        else:
66
66
            last_origin = origin
67
 
            line_rev_id = w.idx_to_name(origin)
68
 
            if not branch.repository.has_revision(line_rev_id):
 
67
            if not branch.repository.has_revision(origin):
69
68
                (revno_str, author, date_str) = ('?','?','?')
70
69
            else:
71
 
                if line_rev_id in rh:
72
 
                    revno_str = str(rh.index(line_rev_id) + 1)
 
70
                if origin in rh:
 
71
                    revno_str = str(rh.index(origin) + 1)
73
72
                else:
74
73
                    revno_str = 'merge'
75
 
            rev = branch.repository.get_revision(line_rev_id)
 
74
            rev = branch.repository.get_revision(origin)
76
75
            tz = rev.timezone or 0
77
76
            date_str = time.strftime('%Y%m%d', 
78
77
                                     time.gmtime(rev.timestamp + tz))
83
82
                author = extract_email_address(author)
84
83
            except BzrError:
85
84
                pass        # use the whole name
86
 
        yield (revno_str, author, date_str, line_rev_id, text)
 
85
        yield (revno_str, author, date_str, origin, text)