~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-04 08:44:08 UTC
  • mfrom: (1981.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060904084408-ebdbb37a1cdb0c53
(robertc) integrate merge_from_branch patch: adds a convenience method "merge_from_branch" to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        parent.commit('1st post', rev_id='P1', allow_pointless=True)
33
33
        mine = parent.bzrdir.sprout('mine').open_workingtree()
34
34
        mine.commit('my change', rev_id='M1', allow_pointless=True)
35
 
        self.merge(mine.branch, parent)
 
35
        parent.merge_from_branch(mine.branch)
36
36
        parent.commit('merge my change', rev_id='P2')
37
37
        mine.pull(parent.branch)
38
38
        self.assertEqual(['P1', 'P2'], mine.branch.revision_history())
47
47
        mine = parent.bzrdir.sprout('mine').open_workingtree()
48
48
        mine.commit('my change', rev_id='M1', allow_pointless=True)
49
49
        other = parent.bzrdir.sprout('other').open_workingtree()
50
 
        self.merge(mine.branch, other)
 
50
        other.merge_from_branch(mine.branch)
51
51
        other.commit('merge my change', rev_id='O2')
52
 
        self.merge(other.branch, parent)
 
52
        parent.merge_from_branch(other.branch)
53
53
        parent.commit('merge other', rev_id='P2')
54
54
        mine.pull(parent.branch)
55
55
        self.assertEqual(['P1', 'P2'], mine.branch.revision_history())