/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/smart/branch.py

  • Committer: Robert Collins
  • Date: 2009-03-05 05:26:24 UTC
  • mto: (4083.1.3 robert-rollup)
  • mto: This revision was merged to the branch mainline in revision 4084.
  • Revision ID: robertc@robertcollins.net-20090305052624-ejso9br8bxv68twx
Add a Branch.get_parent remote call for RemoteBranch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        return SuccessfulSmartServerResponse( ('ok', ), content)
93
93
 
94
94
 
 
95
class SmartServerBranchGetParent(SmartServerBranchRequest):
 
96
 
 
97
    def do_with_branch(self, branch):
 
98
        """Return the parent of branch."""
 
99
        parent = branch._get_parent_location() or ''
 
100
        return SuccessfulSmartServerResponse((parent))
 
101
 
 
102
 
95
103
class SmartServerBranchRequestGetStackedOnURL(SmartServerBranchRequest):
96
104
 
97
105
    def do_with_branch(self, branch):