~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-16 14:03:54 UTC
  • mfrom: (2017.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060916140354-1a9932f525bb7182
(robertc) Add MemoryTree and TreeBuilder test helpers. Also test behavior of transport.has('/') which caused failures in this when merging, and as a result cleanup the sftp path normalisation logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
        A RevisionTree's parents match the revision graph.
50
50
        """
51
 
        parent_ids = self._repository.get_revision(self._revision_id).parent_ids
 
51
        if self._revision_id not in (None, 'null:'):
 
52
            parent_ids = self._repository.get_revision(
 
53
                self._revision_id).parent_ids
 
54
        else:
 
55
            parent_ids = []
52
56
        return parent_ids
53
57
        
54
58
    def get_revision_id(self):