~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-07 14:20:10 UTC
  • mfrom: (6123.1.10 +trunk)
  • mto: (6123.1.12 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6124.
  • Revision ID: jriddell@canonical.com-20110907142010-kncwzcbpsxd714ug
mergeĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1509
1509
        # We need to accumulate additional repositories here, to pass them in
1510
1510
        # on various RPC's.
1511
1511
        #
 
1512
        # Make the check before we lock: this raises an exception.
 
1513
        self._check_fallback_repository(repository)
1512
1514
        if self.is_locked():
1513
1515
            # We will call fallback.unlock() when we transition to the unlocked
1514
1516
            # state, so always add a lock here. If a caller passes us a locked
1515
1517
            # repository, they are responsible for unlocking it later.
1516
1518
            repository.lock_read()
1517
 
        self._check_fallback_repository(repository)
1518
1519
        self._fallback_repositories.append(repository)
1519
1520
        # If self._real_repository was parameterised already (e.g. because a
1520
1521
        # _real_branch had its get_stacked_on_url method called), then the