~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: John Arbash Meinel
  • Date: 2008-04-21 17:32:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3434.
  • Revision ID: john@arbash-meinel.com-20080421173254-8x9ynjqe0hk46xsz
Add repository_implementation tests for get_parent_map

If None is passed, repositories should raise ValueError, since
None is not a valid revision_id.

Implement this ability for all repository implementations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        """See graph._StackedParentsProvider.get_parent_map"""
70
70
        parent_map = {}
71
71
        for revision_id in keys:
 
72
            if revision_id is None:
 
73
                raise ValueError('get_parent_map(None) is not valid')
72
74
            if revision_id == _mod_revision.NULL_REVISION:
73
75
                parent_map[revision_id] = ()
74
76
            else: