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

  • Committer: Martin Pool
  • Date: 2010-04-21 04:53:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5189.
  • Revision ID: mbp@canonical.com-20100421045333-t3yfjjbzo3n8fwv4
Repository implements ControlComponent too

Show diffs side-by-side

added added

removed removed

Lines of Context:
864
864
# Repositories
865
865
 
866
866
 
867
 
class Repository(_RelockDebugMixin):
 
867
class Repository(_RelockDebugMixin, bzrdir.ControlComponent):
868
868
    """Repository holding history for one or more branches.
869
869
 
870
870
    The repository holds and retrieves historical information including
1291
1291
 
1292
1292
        :param _format: The format of the repository on disk.
1293
1293
        :param a_bzrdir: The BzrDir of the repository.
1294
 
 
1295
 
        In the future we will have a single api for all stores for
1296
 
        getting file texts, inventories and revisions, then
1297
 
        this construct will accept instances of those things.
1298
1294
        """
 
1295
        # In the future we will have a single api for all stores for
 
1296
        # getting file texts, inventories and revisions, then
 
1297
        # this construct will accept instances of those things.
1299
1298
        super(Repository, self).__init__()
1300
1299
        self._format = _format
1301
1300
        # the following are part of the public API for Repository:
1316
1315
        # rather copying them?
1317
1316
        self._safe_to_return_from_cache = False
1318
1317
 
 
1318
    @property
 
1319
    def user_transport(self):
 
1320
        return self.bzrdir.user_transport
 
1321
 
 
1322
    @property
 
1323
    def control_transport(self):
 
1324
        return self._transport
 
1325
 
1319
1326
    def __repr__(self):
1320
1327
        if self._fallback_repositories:
1321
1328
            return '%s(%r, fallback_repositories=%r)' % (