~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Robert Collins
  • Date: 2008-04-08 22:47:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3350.
  • Revision ID: robertc@robertcollins.net-20080408224755-cv6j2zt6ij6mvsav
Catch some extra deprecated calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
        # implementation could give us bad output from readlines() so this is
421
421
        # not a guarantee of safety. What would be better is always checking
422
422
        # the content during test suite execution. RBC 20070912
423
 
        try:
424
 
            return versionedfile.add_lines_with_ghosts(
425
 
                self._new_revision_id, parents, new_lines,
426
 
                nostore_sha=nostore_sha, random_id=self.random_revid,
427
 
                check_content=False)[0:2]
428
 
        finally:
429
 
            versionedfile.clear_cache()
 
423
        return versionedfile.add_lines_with_ghosts(
 
424
            self._new_revision_id, parents, new_lines,
 
425
            nostore_sha=nostore_sha, random_id=self.random_revid,
 
426
            check_content=False)[0:2]
430
427
 
431
428
 
432
429
class RootCommitBuilder(CommitBuilder):
1468
1465
 
1469
1466
        # inventory
1470
1467
        yield ("inventory", None, revision_ids)
1471
 
        inv_w.clear_cache()
1472
1468
 
1473
1469
        # signatures
1474
1470
        revisions_with_signatures = set()