~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_switch.py

  • Committer: Ian Clatworthy
  • Date: 2007-12-07 05:31:54 UTC
  • mto: (3092.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3093.
  • Revision ID: ian.clatworthy@internode.on.net-20071207053154-k9tmyczcf8niwonm
fix efficiency of local commit detection as recommended by jameinel's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        to_branch = branch.Branch.open('branch-2')
72
72
        # Check fails without --force
73
73
        err = self.assertRaises((errors.NotBranchError,
74
 
            errors.BzrCommandError),
 
74
            errors.BoundBranchConnectionFailure),
75
75
            switch.switch, checkout.bzrdir, to_branch)
76
76
        switch.switch(checkout.bzrdir, to_branch, force=True)
77
77
        self.failIfExists('checkout/file-1')