~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Ian Clatworthy
  • Author(s): Robert Collins
  • Date: 2009-04-03 05:08:45 UTC
  • mfrom: (4241.4.1 bzr.bris-vf)
  • mto: This revision was merged to the branch mainline in revision 4245.
  • Revision ID: ian.clatworthy@canonical.com-20090403050845-w656xtmr19jtuovs
add sha generation support to versioned files (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
794
794
        check_content=True):
795
795
        """Add a text to the store.
796
796
 
797
 
        :param key: The key tuple of the text to add.
 
797
        :param key: The key tuple of the text to add. If the last element is
 
798
            None, a CHK string will be generated during the addition.
798
799
        :param parents: The parents key tuples of the text to add.
799
800
        :param lines: A list of lines. Each line must be a bytestring. And all
800
801
            of them except the last must be terminated with \n and contain no