/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 revisionmenu.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:
24
24
import bzrlib
25
25
import gtk
26
26
from bzrlib import (errors, ui)
 
27
from bzrlib.revision import NULL_REVISION
27
28
 
28
29
class RevisionPopupMenu(gtk.Menu):
29
30
    def __init__(self, repository, revids, branch=None, wt=None):
73
74
        parentids = self.repository.revision_parents(self.revids[0])
74
75
 
75
76
        if len(parentids) == 0:
76
 
            parentid = None
 
77
            parentid = NULL_REVISION
77
78
        else:
78
79
            parentid = parentids[0]
79
80