~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-09 18:02:00 UTC
  • mfrom: (1963.2.7 bzr.dev.no_has_key)
  • Revision ID: pqm@pqm.ubuntu.com-20060909180200-96e41112dff213f3
(robey) remove hasattr and == None in favor of getattr() and is None

Show diffs side-by-side

added added

removed removed

Lines of Context:
1647
1647
        target_ids = set(self.target.all_revision_ids())
1648
1648
        if revision_id is not None:
1649
1649
            source_ids = self.source.get_ancestry(revision_id)
1650
 
            assert source_ids[0] == None
 
1650
            assert source_ids[0] is None
1651
1651
            source_ids.pop(0)
1652
1652
        else:
1653
1653
            source_ids = self.source.all_revision_ids()
1750
1750
        # - RBC 20060209
1751
1751
        if revision_id is not None:
1752
1752
            source_ids = self.source.get_ancestry(revision_id)
1753
 
            assert source_ids[0] == None
 
1753
            assert source_ids[0] is None
1754
1754
            source_ids.pop(0)
1755
1755
        else:
1756
1756
            source_ids = self.source._all_possible_ids()
1813
1813
        """See InterRepository.missing_revision_ids()."""
1814
1814
        if revision_id is not None:
1815
1815
            source_ids = self.source.get_ancestry(revision_id)
1816
 
            assert source_ids[0] == None
 
1816
            assert source_ids[0] is None
1817
1817
            source_ids.pop(0)
1818
1818
        else:
1819
1819
            source_ids = self.source._all_possible_ids()