~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/branch.py

  • Committer: Andrew Bennetts
  • Date: 2008-04-08 07:44:39 UTC
  • mto: This revision was merged to the branch mainline in revision 3355.
  • Revision ID: andrew.bennetts@canonical.com-20080408074439-n3j4ic7bcliq9s05
Add backwards compatibility for servers older than 1.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
 
126
126
class SmartServerBranchRequestSetLastRevisionInfo(
127
127
    SmartServerLockedBranchRequest):
 
128
    """Branch.set_last_revision_info.  Sets the revno and the revision ID of
 
129
    the specified branch.
 
130
 
 
131
    New in bzrlib 1.4.
 
132
    """
128
133
    
129
134
    def do_with_locked_branch(self, branch, new_revno, new_last_revision_id):
130
135
        branch.set_last_revision_info(int(new_revno), new_last_revision_id)