~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Robert Collins
  • Date: 2008-03-27 00:27:41 UTC
  • mto: This revision was merged to the branch mainline in revision 3313.
  • Revision ID: robertc@robertcollins.net-20080327002741-1vrg4yekrlvv4lfn
Fix up deprecation warnings for get_revision_graph.

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
    @symbol_versioning.deprecated_method(symbol_versioning.one_four)
365
365
    def get_revision_graph(self, revision_id=None):
366
366
        """See Repository.get_revision_graph()."""
 
367
        return self._get_revision_graph(revision_id)
 
368
 
 
369
    def _get_revision_graph(self, revision_id):
 
370
        """Private method for using with old (< 1.2) servers to fallback."""
367
371
        if revision_id is None:
368
372
            revision_id = ''
369
373
        elif revision.is_null(revision_id):
894
898
            # To avoid having to disconnect repeatedly, we keep track of the
895
899
            # fact the server doesn't understand remote methods added in 1.2.
896
900
            medium._remote_is_at_least_1_2 = False
897
 
            return self.get_revision_graph()
 
901
            return self._get_revision_graph(None)
898
902
        elif response[0][0] not in ['ok']:
899
903
            reponse[1].cancel_read_body()
900
904
            raise errors.UnexpectedSmartServerResponse(response[0])