~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.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:
1903
1903
        self._pack_collection.ensure_loaded()
1904
1904
        index = self._pack_collection.revision_index.combined_index
1905
1905
        keys = set(keys)
 
1906
        if None in keys:
 
1907
            raise ValueError('get_parent_map(None) is not valid')
1906
1908
        if _mod_revision.NULL_REVISION in keys:
1907
1909
            keys.discard(_mod_revision.NULL_REVISION)
1908
1910
            found_parents = {_mod_revision.NULL_REVISION:()}