~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-18 22:34:21 UTC
  • mto: (3606.5.6 1.6)
  • mto: This revision was merged to the branch mainline in revision 3641.
  • Revision ID: john@arbash-meinel.com-20080818223421-todjny24vj4faj4t
Add tests for the fetching behavior.

The proper parameter passed is 'unordered' add an assert for it, and
fix callers that were passing 'unsorted' instead.
Add tests that we make the right get_record_stream call based
on the value of _fetch_uses_deltas.
Fix the fetch request for signatures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1195
1195
                    current_source = key_source
1196
1196
                source_keys[-1][1].append(key)
1197
1197
        else:
 
1198
            if ordering != 'unordered':
 
1199
                raise AssertionError('valid values for ordering are:'
 
1200
                    ' "unordered" or "topological" not: %r'
 
1201
                    % (ordering,))
1198
1202
            # Just group by source; remote sources first.
1199
1203
            present_keys = []
1200
1204
            source_keys = []