/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/knit.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-04 21:09:51 UTC
  • mto: This revision was merged to the branch mainline in revision 4469.
  • Revision ID: john@arbash-meinel.com-20090604210951-5mxlt1h8p4xdh6pl
Switch the api from VF.add_text to VF._add_text and trim some extra 'features'.

Commit won't be using parent_texts or left_matching_blocks or check_content.
And for something like fast-import, it will be tuned for GC repositories anyway,
and there we don't need parent_texts anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
914
914
            parent_texts, left_matching_blocks, nostore_sha, random_id,
915
915
            line_bytes=line_bytes)
916
916
 
917
 
    def add_text(self, key, parents, text, parent_texts=None,
918
 
        nostore_sha=None, random_id=False,
919
 
        check_content=True):
 
917
    def _add_text(self, key, parents, text, nostore_sha=None, random_id=False):
920
918
        """See VersionedFiles.add_text()."""
921
919
        self._index._check_write_ok()
922
920
        self._check_add(key, None, random_id, check_content=False)
928
926
            # an empty tuple instead.
929
927
            parents = ()
930
928
        return self._add(key, None, parents,
931
 
            parent_texts, None, nostore_sha, random_id,
 
929
            None, None, nostore_sha, random_id,
932
930
            line_bytes=text)
933
931
 
934
932
    def _add(self, key, lines, parents, parent_texts,