/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 breezy/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-30 19:16:23 UTC
  • mto: This revision was merged to the branch mainline in revision 6639.
  • Revision ID: jelmer@jelmer.uk-20170530191623-t9ls96vjy9wslpoo
Remove deprecated functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    bzrdir,
44
44
    errors,
45
45
    registry,
46
 
    symbol_versioning,
47
46
    ui,
48
47
    )
49
48
from .decorators import needs_read_lock, needs_write_lock, only_raises
577
576
 
578
577
    @needs_read_lock
579
578
    def search_missing_revision_ids(self, other,
580
 
            revision_id=symbol_versioning.DEPRECATED_PARAMETER,
581
579
            find_ghosts=True, revision_ids=None, if_present_ids=None,
582
580
            limit=None):
583
581
        """Return the revision ids that other has that this does not.
584
582
 
585
583
        These are returned in topological order.
586
584
 
587
 
        revision_id: only return revision ids included by revision_id.
 
585
        revision_ids: only return revision ids included by revision_id.
588
586
        """
589
 
        if symbol_versioning.deprecated_passed(revision_id):
590
 
            symbol_versioning.warn(
591
 
                'search_missing_revision_ids(revision_id=...) was '
592
 
                'deprecated in 2.4.  Use revision_ids=[...] instead.',
593
 
                DeprecationWarning, stacklevel=3)
594
 
            if revision_ids is not None:
595
 
                raise AssertionError(
596
 
                    'revision_ids is mutually exclusive with revision_id')
597
 
            if revision_id is not None:
598
 
                revision_ids = [revision_id]
599
587
        return InterRepository.get(other, self).search_missing_revision_ids(
600
588
            find_ghosts=find_ghosts, revision_ids=revision_ids,
601
589
            if_present_ids=if_present_ids, limit=limit)
1662
1650
 
1663
1651
    @needs_read_lock
1664
1652
    def search_missing_revision_ids(self,
1665
 
            revision_id=symbol_versioning.DEPRECATED_PARAMETER,
1666
1653
            find_ghosts=True, revision_ids=None, if_present_ids=None,
1667
1654
            limit=None):
1668
1655
        """Return the revision ids that source has that target does not.
1669
1656
 
1670
 
        :param revision_id: only return revision ids included by this
1671
 
            revision_id.
1672
1657
        :param revision_ids: return revision ids included by these
1673
1658
            revision_ids.  NoSuchRevision will be raised if any of these
1674
1659
            revisions are not present.