~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-14 13:34:43 UTC
  • mto: This revision was merged to the branch mainline in revision 6503.
  • Revision ID: jelmer@samba.org-20120314133443-49xanzettqvnh7zh
Remove more .set_revision_history / .revision_history references.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3792
3792
            raise errors.UnexpectedSmartServerResponse(response)
3793
3793
        self._run_post_change_branch_tip_hooks(old_revno, old_revid)
3794
3794
 
3795
 
    @needs_write_lock
3796
 
    def _set_revision_history(self, rev_history):
3797
 
        # Send just the tip revision of the history; the server will generate
3798
 
        # the full history from that.  If the revision doesn't exist in this
3799
 
        # branch, NoSuchRevision will be raised.
3800
 
        if rev_history == []:
3801
 
            rev_id = 'null:'
3802
 
        else:
3803
 
            rev_id = rev_history[-1]
3804
 
        self._set_last_revision(rev_id)
3805
 
        for hook in branch.Branch.hooks['set_rh']:
3806
 
            hook(self, rev_history)
3807
 
        self._cache_revision_history(rev_history)
3808
 
 
3809
3795
    def _get_parent_location(self):
3810
3796
        medium = self._client._medium
3811
3797
        if medium._is_remote_before((1, 13)):