~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-07-10 21:18:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070710211854-93ofaa70day2p8d3
Start eliminating the use of None to indicate null revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
498
498
        for revision in revisions:
499
499
            required_trees.add(revision.revision_id)
500
500
            required_trees.update(revision.parent_ids[:1])
 
501
        if ('null:' in required_trees):
 
502
            import pdb; pdb.set_trace()
 
503
 
501
504
        trees = dict((t.get_revision_id(), t) for 
502
505
                     t in self.revision_trees(required_trees))
503
506
        for revision in revisions:
827
830
        
828
831
        This is topologically sorted.
829
832
        """
830
 
        if revision_id is None:
 
833
        if _mod_revision.is_null(revision_id):
831
834
            return [None]
832
835
        revision_id = osutils.safe_revision_id(revision_id)
833
836
        if not self.has_revision(revision_id):