/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/gannotate.py

  • Committer: Aaron Bentley
  • Date: 2006-09-18 13:49:47 UTC
  • mfrom: (81 bzr-gtk)
  • mto: (66.6.5 gtk)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: abentley@panoramicfeedback.com-20060918134947-0c9ad79a67b1765f
MergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
            # bar?
116
116
            print("gannotate: Line number %d does't exist. Defaulting to "
117
117
                  "line 1." % lineno)
 
118
            return
118
119
        else:
119
120
            row = lineno - 1
120
121
 
148
149
 
149
150
    def _set_oldest_newest(self):
150
151
        rev_dates = map(lambda i: self.revisions[i].timestamp, self.revisions)
 
152
        if len(rev_dates) == 0:
 
153
            return
151
154
        oldest = min(rev_dates)
152
155
        newest = max(rev_dates)
153
156
 
173
176
 
174
177
    def _show_log(self, w):
175
178
        (path, col) = self.annoview.get_cursor()
 
179
        if path is None:
 
180
            return
176
181
        rev_id = self.annomodel[path][REVISION_ID_COL]
177
182
        self.logview.set_revision(self.revisions[rev_id])
178
183