/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

merge bzr.dev rev 4098

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
 
 
103
class SmartServerBranchGetTagsBytes(SmartServerBranchRequest):
 
104
 
 
105
    def do_with_branch(self, branch):
 
106
        """Return the _get_tags_bytes for a branch."""
 
107
        bytes = branch._get_tags_bytes()
 
108
        return SuccessfulSmartServerResponse((bytes,))
 
109
 
 
110
 
95
111
class SmartServerBranchRequestGetStackedOnURL(SmartServerBranchRequest):
96
112
 
97
113
    def do_with_branch(self, branch):