~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_switch.py

  • Committer: John Arbash Meinel
  • Date: 2008-05-21 15:42:47 UTC
  • mto: This revision was merged to the branch mainline in revision 3465.
  • Revision ID: john@arbash-meinel.com-20080521154247-sqpkv9um9grku9e1
Add tests for Branch.missing_revisions and deprecate it.

The api uses a 'stop_revision' but it is supposed to be a revno, not a
revision_id. The code itself is very crufty and slow (and doesn't take
a read_lock). But rather than fix it, just nuke the function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        self.failIfExists('checkout/file-3')
131
131
        self.failUnlessExists('checkout/file-4')
132
132
        # Check that the checkout is a true mirror of the bound branch
133
 
        missing_in_checkout = checkout.branch.missing_revisions(to_branch)
134
 
        self.assertEqual([], missing_in_checkout)
135
 
        missing_in_remote = to_branch.missing_revisions(checkout.branch)
136
 
        self.assertEqual([], missing_in_remote)
 
133
        self.assertEqual(to_branch.last_revision_info(),
 
134
                         checkout.branch.last_revision_info())