~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_switch.py

  • Committer: Daniel Watkins
  • Date: 2009-02-09 17:55:24 UTC
  • mto: This revision was merged to the branch mainline in revision 4964.
  • Revision ID: daniel@daniel-watkins.co.uk-20090209175524-p0z4uqs6w52r19m3
Convert test back to taking a revision_id.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import os
21
21
 
22
 
from bzrlib import branch, errors, revisionspec, switch, tests
 
22
from bzrlib import branch, errors, switch, tests
23
23
 
24
24
 
25
25
class TestSwitch(tests.TestCaseWithTransport):
109
109
        # Check it out and switch to revision 1
110
110
        checkout = tree.branch.create_checkout('checkout',
111
111
                                               lightweight=self.lightweight)
112
 
        revspec = revisionspec.RevisionSpec.from_string("revid:rev1")
113
 
        switch.switch(checkout.bzrdir, tree.branch, revspec=revspec)
 
112
        switch.switch(checkout.bzrdir, tree.branch, revision_id="rev1")
114
113
        self.failUnlessExists('checkout/file-1')
115
114
        self.failIfExists('checkout/file-2')
116
115