~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit_merge.py

  • Committer: Robert Collins
  • Date: 2006-02-21 11:42:36 UTC
  • mfrom: (1534.1.36 inter-repo-api)
  • mto: This revision was merged to the branch mainline in revision 1560.
  • Revision ID: robertc@robertcollins.net-20060221114236-0deb1948f0c8c956
Merge in InterRepository API support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from bzrlib.branch import Branch
23
23
from bzrlib.errors import PointlessCommit, BzrError, PointlessCommit
24
24
from bzrlib.tests.test_revision import make_branches
25
 
from bzrlib.fetch import fetch
26
25
from bzrlib.check import check
27
26
 
28
27
 
43
42
        wtx.commit('commit one', rev_id='x@u-0-1', allow_pointless=True)
44
43
        wty.commit('commit two', rev_id='y@u-0-1', allow_pointless=True)
45
44
 
46
 
        fetcher = fetch(from_branch=bx, to_branch=by)
47
 
        self.assertEqual(1, fetcher.count_copied)
48
 
        self.assertEqual([], fetcher.failed_revisions)
 
45
        self.assertEqual((1, []), by.fetch(bx))
49
46
        # just having the history there does nothing
50
47
        self.assertRaises(PointlessCommit,
51
48
                          wty.commit,
76
73
        wtx.commit('commit one', rev_id='x@u-0-1', allow_pointless=True)
77
74
        wty.commit('commit two', rev_id='y@u-0-1', allow_pointless=True)
78
75
 
79
 
        fetch(from_branch=bx, to_branch=by)
 
76
        by.fetch(bx)
80
77
        # we haven't merged the texts, but let's fake it
81
78
        shutil.copyfile('x/ecks', 'y/ecks')
82
79
        wty.add(['ecks'], ['ecks-id'])