/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/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-28 06:42:20 UTC
  • mfrom: (3287.6.9 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080328064220-ongijg78bfqhvbay
Deprecate a number of VersionedFile method calls,
        and Repository.get_revision_graph. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
        self._ensure_real()
362
362
        return self._real_repository._generate_text_key_index()
363
363
 
 
364
    @symbol_versioning.deprecated_method(symbol_versioning.one_four)
364
365
    def get_revision_graph(self, revision_id=None):
365
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."""
366
371
        if revision_id is None:
367
372
            revision_id = ''
368
373
        elif revision.is_null(revision_id):
836
841
            # We already found out that the server can't understand
837
842
            # Repository.get_parent_map requests, so just fetch the whole
838
843
            # graph.
 
844
            # XXX: Note that this will issue a deprecation warning. This is ok
 
845
            # :- its because we're working with a deprecated server anyway, and
 
846
            # the user will almost certainly have seen a warning about the
 
847
            # server version already.
839
848
            return self.get_revision_graph()
840
849
 
841
850
        keys = set(keys)
889
898
            # To avoid having to disconnect repeatedly, we keep track of the
890
899
            # fact the server doesn't understand remote methods added in 1.2.
891
900
            medium._remote_is_at_least_1_2 = False
892
 
            return self.get_revision_graph()
 
901
            return self._get_revision_graph(None)
893
902
        elif response[0][0] not in ['ok']:
894
903
            reponse[1].cancel_read_body()
895
904
            raise errors.UnexpectedSmartServerResponse(response[0])