/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: Vincent Ladeuil
  • Date: 2010-04-28 17:11:50 UTC
  • mto: (5193.6.1 texinfo)
  • mto: This revision was merged to the branch mainline in revision 5356.
  • Revision ID: v.ladeuil+lp@free.fr-20100428171150-hrjit8iqn3cjjucc
Rename sphinx related files into a better namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
864
864
# Repositories
865
865
 
866
866
 
867
 
class Repository(_RelockDebugMixin, bzrdir.ControlComponent):
 
867
class Repository(_RelockDebugMixin):
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.
1294
1298
        """
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
1299
        super(Repository, self).__init__()
1299
1300
        self._format = _format
1300
1301
        # the following are part of the public API for Repository:
1315
1316
        # rather copying them?
1316
1317
        self._safe_to_return_from_cache = False
1317
1318
 
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
 
 
1326
1319
    def __repr__(self):
1327
1320
        if self._fallback_repositories:
1328
1321
            return '%s(%r, fallback_repositories=%r)' % (
1476
1469
 
1477
1470
        # now gather global repository information
1478
1471
        # XXX: This is available for many repos regardless of listability.
1479
 
        if self.user_transport.listable():
 
1472
        if self.bzrdir.root_transport.listable():
1480
1473
            # XXX: do we want to __define len__() ?
1481
1474
            # Maybe the versionedfiles object should provide a different
1482
1475
            # method to get the number of keys.
1514
1507
 
1515
1508
        ret = []
1516
1509
        for branches, repository in bzrdir.BzrDir.find_bzrdirs(
1517
 
                self.user_transport, evaluate=Evaluator()):
 
1510
                self.bzrdir.root_transport, evaluate=Evaluator()):
1518
1511
            if branches is not None:
1519
1512
                ret.extend(branches)
1520
1513
            if not using and repository is not None: