~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

(jelmer) Remove deprecated Branch.import_last_revision. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1034
1034
    def _read_last_revision_info(self):
1035
1035
        raise NotImplementedError(self._read_last_revision_info)
1036
1036
 
1037
 
    @deprecated_method(deprecated_in((2, 4, 0)))
1038
 
    def import_last_revision_info(self, source_repo, revno, revid):
1039
 
        """Set the last revision info, importing from another repo if necessary.
1040
 
 
1041
 
        :param source_repo: Source repository to optionally fetch from
1042
 
        :param revno: Revision number of the new tip
1043
 
        :param revid: Revision id of the new tip
1044
 
        """
1045
 
        if not self.repository.has_same_location(source_repo):
1046
 
            self.repository.fetch(source_repo, revision_id=revid)
1047
 
        self.set_last_revision_info(revno, revid)
1048
 
 
1049
1037
    def import_last_revision_info_and_tags(self, source, revno, revid,
1050
1038
                                           lossy=False):
1051
1039
        """Set the last revision info, importing from another repo if necessary.