~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_pull.py

  • Committer: Andrew Bennetts
  • Date: 2007-11-10 15:09:09 UTC
  • mfrom: (2916.2.17 streamable-containers)
  • mto: This revision was merged to the branch mainline in revision 3174.
  • Revision ID: andrew.bennetts@canonical.com-20071110150909-ik5254kgn930th10
Merge streamable-containers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from bzrlib import errors
24
24
from bzrlib.memorytree import MemoryTree
25
25
from bzrlib.revision import NULL_REVISION
26
 
from bzrlib.tests import TestSkipped
27
26
from bzrlib.tests.branch_implementations.test_branch import TestCaseWithBranch
28
27
 
29
28
 
89
88
        tree_a.commit('message 2', rev_id='rev2a')
90
89
        tree_b.commit('message 2', rev_id='rev2b')
91
90
        self.assertRaises(errors.DivergedBranches, tree_a.pull, tree_b.branch)
92
 
        tree_a.branch.pull(tree_a.branch, overwrite=True,
 
91
        tree_a.branch.pull(tree_b.branch, overwrite=True,
93
92
                           stop_revision='rev2b')
94
93
        self.assertEqual('rev2b', tree_a.branch.last_revision())
95
94
        self.assertEqual(tree_b.branch.revision_history(),