~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-02 18:59:18 UTC
  • mto: This revision was merged to the branch mainline in revision 4469.
  • Revision ID: john@arbash-meinel.com-20090602185918-86l9eljnn8z2iljk
Add a VersionedFile.add_text() api.

Similar to VF.add_lines() except it takes a string for the content, rather
than a list of lines.

For now, it just thunks over to VF.add_lines(), but it will be special
cased in the future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1597
1597
                if refs:
1598
1598
                    for ref in refs:
1599
1599
                        if ref:
1600
 
                            raise KnitCorrupt(self,
 
1600
                            raise errors.KnitCorrupt(self,
1601
1601
                                "attempt to add node with parents "
1602
1602
                                "in parentless index.")
1603
1603
                    refs = ()