/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: 2008-06-29 19:18:34 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: jelmer@samba.org-20080629191834-ha2ecpv5szt96nge
Make sure signed testament matches repository data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
class GAnnotateWindow(Window):
46
46
    """Annotate window."""
47
47
 
48
 
    def __init__(self, all=False, plain=False, parent=None):
 
48
    def __init__(self, all=False, plain=False, parent=None, branch=None):
49
49
        self.all = all
50
50
        self.plain = plain
 
51
        self._branch = branch
51
52
        
52
53
        Window.__init__(self, parent)
53
54
        
177
178
 
178
179
    def _activate_selected_revision(self, w):
179
180
        rev_id = self._selected_revision()
180
 
        if rev_id is None:
 
181
        if not rev_id or rev_id == NULL_REVISION:
181
182
            return
182
183
        selected = self.revisions[rev_id]
183
184
        self.revisionview.set_revision(selected)
320
321
        return tv
321
322
 
322
323
    def _create_log_view(self):
323
 
        lv = RevisionView()
 
324
        lv = RevisionView(self._branch)
324
325
        lv.show()
325
326
        return lv
326
327