/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 branchview/treemodel.py

  • Committer: Jelmer Vernooij
  • Date: 2008-04-25 20:23:28 UTC
  • mfrom: (464.2.1 gtk)
  • Revision ID: jelmer@samba.org-20080425202328-3cpit50s53ow5410
Merge patch from Adrian dealing with null revision in a couple of places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import pango
13
13
import re
14
14
from xml.sax.saxutils import escape
 
15
from bzrlib.revision import NULL_REVISION
15
16
 
16
17
from time import (strftime, localtime)
17
18
 
100
101
 
101
102
        if column == TAGS: return self.tags.get(revid, [])
102
103
 
103
 
        if revid is None:
 
104
        if not revid or revid == NULL_REVISION:
104
105
            return None
105
106
        if revid not in self.revisions:
106
107
            revision = self.repository.get_revisions([revid])[0]