/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Robert Collins
  • Date: 2008-06-17 05:02:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3510.
  • Revision ID: robertc@robertcollins.net-20080617050234-knib0hpz6pjx3sl1
Review feedback, making things more clear, adding documentation on what is used where.

Show diffs side-by-side

added added

removed removed

Lines of Context:
678
678
 
679
679
    Currently no implementation allows the graph of different key prefixes to
680
680
    intersect, but the API does allow such implementations in the future.
 
681
 
 
682
    The keyspace is expressed via simple tuples. Any instance of VersionedFiles
 
683
    may have a different length key-size, but that size will be constant for
 
684
    all texts added to or retrieved from it. For instance, bzrlib uses
 
685
    instances with a key-size of 2 for storing user files in a repository, with
 
686
    the first element the fileid, and the second the version of that file.
 
687
 
 
688
    The use of tuples allows a single code base to support several different
 
689
    uses with only the mapping logic changing from instance to instance.
681
690
    """
682
691
 
683
692
    def add_lines(self, key, parents, lines, parent_texts=None,