~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

  • Committer: Robert Collins
  • Date: 2006-02-28 08:27:59 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060228082759-d082181cb6fa27e5
First cut at including the knit implementation of versioned_file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib.weave import Weave
26
26
from bzrlib.transactions import PassThroughTransaction
27
27
from bzrlib.trace import mutter
28
 
#from bzrlib.knit import KnitVersionedFile, \
29
 
#     KnitAnnotateFactory
 
28
from bzrlib.knit import KnitVersionedFile, \
 
29
     KnitAnnotateFactory
30
30
from bzrlib.transport.local import LocalTransport
31
31
from bzrlib.errors import RevisionNotPresent, \
32
32
     RevisionAlreadyPresent
157
157
        return Weave(name)
158
158
 
159
159
 
160
 
#class TestKnit(TestCaseInTempDir, VersionedFileTestMixIn):
161
 
#    def get_file(self, name='foo'):
162
 
#        t = PassThroughTransaction()
163
 
#        return KnitVersionedFile(LocalTransport('.'),
164
 
#            name, 'w', KnitAnnotateFactory(), t, delta=True)
165
 
#
166
 
#    def test_clone_text(self):
167
 
#        pass
168
 
#
169
 
#    def test_walk(self):
170
 
#        pass
 
160
class TestKnit(TestCaseInTempDir, VersionedFileTestMixIn):
 
161
 
 
162
    def get_file(self, name='foo'):
 
163
        t = PassThroughTransaction()
 
164
        return KnitVersionedFile(LocalTransport('.'),
 
165
            name, 'w', KnitAnnotateFactory(), t, delta=True)