~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/branch.py

  • Committer: Andrew Bennetts
  • Date: 2009-03-06 01:02:59 UTC
  • mfrom: (4078.2.1 branch.roundtrips)
  • mto: This revision was merged to the branch mainline in revision 4084.
  • Revision ID: andrew.bennetts@canonical.com-20090306010259-kj6hsixvt56869ej
Merge Robert's branch.roundtrips.

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):