/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

Create basic stackable branch facility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1289
1289
        self._ensure_real()
1290
1290
        return self._real_branch.get_physical_lock_status()
1291
1291
 
 
1292
    def get_stacked_on(self):
 
1293
        """Get the URL this branch is stacked against.
 
1294
 
 
1295
        :raises NotStacked: If the branch is not stacked.
 
1296
        :raises UnstackableBranchFormat: If the branch does not support
 
1297
            stacking.
 
1298
        :raises UnstackableRepositoryFormat: If the repository does not support
 
1299
            stacking.
 
1300
        """
 
1301
        self._ensure_real()
 
1302
        return self._real_branch.get_stacked_on()
 
1303
 
1292
1304
    def lock_read(self):
1293
1305
        if not self._lock_mode:
1294
1306
            self._lock_mode = 'r'
1464
1476
        self._ensure_real()
1465
1477
        return self._real_branch.set_parent(url)
1466
1478
        
 
1479
    def set_stacked_on(self, stacked_location):
 
1480
        """set the URL this branch is stacked against.
 
1481
 
 
1482
        :raises UnstackableBranchFormat: If the branch does not support
 
1483
            stacking.
 
1484
        :raises UnstackableRepositoryFormat: If the repository does not support
 
1485
            stacking.
 
1486
        """
 
1487
        self._ensure_real()
 
1488
        return self._real_branch.set_stacked_on(stacked_location)
 
1489
 
1467
1490
    def get_config(self):
1468
1491
        return RemoteBranchConfig(self)
1469
1492