/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 bzrlib/tests/test_status.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-28 16:19:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1979.
  • Revision ID: john@arbash-meinel.com-20060828161947-5986ffb6cf082f59
Switch from get_revision_spec() to RevisionSpec.from_string() (as advised by Martin)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from StringIO import StringIO
19
19
 
20
 
from bzrlib.revisionspec import get_revision_spec
 
20
from bzrlib.revisionspec import RevisionSpec
21
21
from bzrlib.status import show_pending_merges, show_tree_status
22
22
from bzrlib.tests import TestCaseWithTransport
23
23
 
43
43
        r2_tree = tree.branch.repository.revision_tree(r2_id)
44
44
        output = StringIO()
45
45
        show_tree_status(tree, to_file=output,
46
 
                         revision=[get_revision_spec("revid:%s" % r1_id),
47
 
                                   get_revision_spec("revid:%s" % r2_id)])
 
46
                     revision=[RevisionSpec.from_string("revid:%s" % r1_id),
 
47
                               RevisionSpec.from_string("revid:%s" % r2_id)])
48
48
        # return does not matter as long as it did not raise.