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

  • Committer: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1306
1306
        return self._real_repository.make_working_trees()
1307
1307
 
1308
1308
    def refresh_data(self):
1309
 
        """Re-read any data needed to synchronise with disk.
 
1309
        """Re-read any data needed to to synchronise with disk.
1310
1310
 
1311
1311
        This method is intended to be called after another repository instance
1312
1312
        (such as one used by a smart server) has inserted data into the
1313
 
        repository. On all repositories this will work outside of write groups.
1314
 
        Some repository formats (pack and newer for bzrlib native formats)
1315
 
        support refresh_data inside write groups. If called inside a write
1316
 
        group on a repository that does not support refreshing in a write group
1317
 
        IsInWriteGroupError will be raised.
 
1313
        repository. It may not be called during a write group, but may be
 
1314
        called at any other time.
1318
1315
        """
 
1316
        if self.is_in_write_group():
 
1317
            raise errors.InternalBzrError(
 
1318
                "May not refresh_data while in a write group.")
1319
1319
        if self._real_repository is not None:
1320
1320
            self._real_repository.refresh_data()
1321
1321