/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: Jelmer Vernooij
  • Date: 2007-02-01 15:50:40 UTC
  • Revision ID: jelmer@samba.org-20070201155040-3hq4mfbxs99kzazy
add framework for tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from bzrlib.revision import NULL_REVISION, CURRENT_REVISION
29
29
 
30
30
from colormap import AnnotateColorMap, AnnotateColorSaturation
31
 
from bzrlib.plugins.gtk.logview import LogView
 
31
from logview import LogView
 
32
from spanselector import SpanSelector
32
33
 
33
34
 
34
35
(
243
244
                tree2 = repository.revision_tree(revision.parent_ids[0])
244
245
            else:
245
246
                tree2 = repository.revision_tree(NULL_REVISION)
246
 
        from bzrlib.plugins.gtk.diff import DiffWindow
 
247
        from bzrlib.plugins.gtk.viz.diffwin import DiffWindow
247
248
        window = DiffWindow()
248
249
        window.set_diff("Diff for row %d" % (row+1), tree1, tree2)
249
250
        window.set_file(tree1.id2path(self.file_id))
311
312
    def _create_log_view(self):
312
313
        lv = LogView()
313
314
        lv.show()
 
315
 
314
316
        return lv
315
317
 
316
318
    def _create_button_box(self):
376
378
        self.message = "?"
377
379
        self.timestamp = 0.0
378
380
        self.timezone = 0
379
 
        self.properties = []
380
381
 
381
382
 
382
383
class RevisionCache(object):