~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2006-03-02 01:26:22 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060302012622-6d1d0b92fe94d9be
Checkpointing: created InterObject to factor out common inter object worker code, added InterVersionedFile and tests to allow making join work between any versionedfile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
INDEX_SUFFIX = '.kndx'
98
98
 
99
99
 
 
100
# convenience factories for testing or use:
 
101
def AnnotatedKnitFactory(name, transport, mode=None):
 
102
    """Create a knit with path name in transport transport."""
 
103
    return KnitVersionedFile(transport,
 
104
                             name,
 
105
                             'w',
 
106
                             KnitAnnotateFactory(),
 
107
                             delta=True)
 
108
 
 
109
 
100
110
class KnitContent(object):
101
111
    """Content of a knit version to which deltas can be applied."""
102
112