~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_status.py

  • Committer: Aaron Bentley
  • Date: 2007-08-06 22:26:54 UTC
  • mfrom: (2665 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2733.
  • Revision ID: aaron.bentley@utoronto.ca-20070806222654-a96j4mysnih1ha8x
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    errors,
35
35
    )
36
36
import bzrlib.branch
37
 
from bzrlib.builtins import merge
38
37
from bzrlib.osutils import pathjoin
39
38
from bzrlib.revisionspec import RevisionSpec
40
39
from bzrlib.status import show_tree_status
145
144
        b_2 = b_2_dir.open_branch()
146
145
        wt2 = b_2_dir.open_workingtree()
147
146
        wt.commit(u"\N{TIBETAN DIGIT TWO} Empty commit 2")
148
 
        merge(["./branch", -1], [None, None], this_dir = './copy')
 
147
        wt2.merge_from_branch(wt.branch)
149
148
        message = self.status_string(wt2)
150
149
        self.assertStartsWith(message, "pending merges:\n")
151
150
        self.assertEndsWith(message, "Empty commit 2\n")
153
152
        # must be long to make sure we see elipsis at the end
154
153
        wt.commit("Empty commit 3 " +
155
154
                   "blah blah blah blah " * 100)
156
 
        merge(["./branch", -1], [None, None], this_dir = './copy')
 
155
        wt2.merge_from_branch(wt.branch)
157
156
        message = self.status_string(wt2)
158
157
        self.assertStartsWith(message, "pending merges:\n")
159
158
        self.assert_("Empty commit 3" in message)