~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

  • Committer: John Arbash Meinel
  • Date: 2009-03-16 21:15:19 UTC
  • mto: (3735.2.156 brisbane-core)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090316211519-3r3zx1fgg167gl3z
Add groupcompress-block[-ref] as valid stream types.

However, we now encounter that the versionedfile tests assume that Factory
objects know the content's sha1 sum if we request them with delta_closure=False.
I assume this is because we had been reading the knit content headers to
get the sha1sum, but I think Andrew was planning on changing that anyway.
The VF tests expose the lack of sha1, but otherwise things seem to
work if we pass back the lazy block, rather than extracting it
ahead of time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1663
1663
             'knit-ft', 'knit-delta', 'chunked', 'fulltext',
1664
1664
             'knit-annotated-ft-gz', 'knit-annotated-delta-gz', 'knit-ft-gz',
1665
1665
             'knit-delta-gz',
1666
 
             'knit-delta-closure', 'knit-delta-closure-ref'])
 
1666
             'knit-delta-closure', 'knit-delta-closure-ref',
 
1667
             'groupcompress-block', 'groupcompress-block-ref'])
1667
1668
 
1668
1669
    def capture_stream(self, f, entries, on_seen, parents):
1669
1670
        """Capture a stream for testing."""