~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2008-04-07 21:52:08 UTC
  • mto: This revision was merged to the branch mainline in revision 3350.
  • Revision ID: robertc@robertcollins.net-20080407215208-rg0qk19a7sanekl1
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1415
1415
                                   index)
1416
1416
 
1417
1417
    def _check_write_ok(self):
1418
 
        if self.get_scope() != self.scope:
 
1418
        if self._get_scope() != self._scope:
1419
1419
            raise errors.OutSideTransaction()
1420
1420
        if self._mode != 'w':
1421
1421
            raise errors.ReadOnlyObjectDirtiedError(self)
1449
1449
            else:
1450
1450
                self._transport.put_bytes_non_atomic(
1451
1451
                    self._filename, self.HEADER, mode=self._file_mode)
1452
 
        self.scope = get_scope()
1453
 
        self.get_scope = get_scope
 
1452
        self._scope = get_scope()
 
1453
        self._get_scope = get_scope
1454
1454
 
1455
1455
    def get_ancestry(self, versions, topo_sorted=True):
1456
1456
        """See VersionedFile.get_ancestry."""