/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: Andrew Bennetts
  • Date: 2008-03-25 07:21:21 UTC
  • mto: (3297.4.1 smart-set-revision-info)
  • mto: This revision was merged to the branch mainline in revision 3355.
  • Revision ID: andrew.bennetts@canonical.com-20080325072121-67qctpl7mxhr3onc
Add Branch.set_last_revision_info smart method, and make the RemoteBranch client use it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        return SuccessfulSmartServerResponse(('ok',))
117
117
 
118
118
 
 
119
class SmartServerBranchRequestSetLastRevisionInfo(
 
120
    SmartServerLockedBranchRequest):
 
121
    
 
122
    def do_with_locked_branch(self, branch, new_revno, new_last_revision_id):
 
123
        branch.set_last_revision_info(int(new_revno), new_last_revision_id)
 
124
        return SuccessfulSmartServerResponse(('ok',))
 
125
 
 
126
 
119
127
class SmartServerBranchRequestLockWrite(SmartServerBranchRequest):
120
128
    
121
129
    def do_with_branch(self, branch, branch_token='', repo_token=''):