/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 viz/treeview.py

  • Committer: Daniel Schierbeck
  • Date: 2007-11-03 15:58:52 UTC
  • mto: (330.6.6 trunk)
  • mto: This revision was merged to the branch mainline in revision 342.
  • Revision ID: daniel.schierbeck@gmail.com-20071103155852-ypg0b384bkov6vzm
Switched to using NULL_REVISION instead of None.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from linegraph import linegraph, same_branch
18
18
from graphcell import CellRendererGraph
19
19
from treemodel import TreeModel
 
20
from bzrlib.revision import NULL_REVISION
20
21
 
21
22
class TreeView(gtk.ScrolledWindow):
22
23
 
152
153
        window = DiffWindow(parent=self)
153
154
 
154
155
        rev_tree    = branch.repository.revision_tree(revid)
 
156
 
 
157
        if parentid is None:
 
158
            parentid = NULL_REVISION
 
159
 
155
160
        parent_tree = branch.repository.revision_tree(parentid)
156
161
 
157
162
        description = revid + " - " + branch.nick