~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2008-09-02 05:28:37 UTC
  • mfrom: (3675 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3677.
  • Revision ID: robertc@robertcollins.net-20080902052837-ec3qlv41q5e7f6fl
Resolve conflicts with NEWS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
442
442
        out, err = self.run_bzr('status --no-pending', working_dir='a')
443
443
        self.assertEquals(out, "added:\n  b\n")
444
444
 
 
445
    def test_pending_specific_files(self):
 
446
        """With a specific file list, pending merges are not shown."""
 
447
        tree = self.make_branch_and_tree('tree')
 
448
        self.build_tree_contents([('tree/a', 'content of a\n')])
 
449
        tree.add('a')
 
450
        r1_id = tree.commit('one')
 
451
        alt = tree.bzrdir.sprout('alt').open_workingtree()
 
452
        self.build_tree_contents([('alt/a', 'content of a\nfrom alt\n')])
 
453
        alt_id = alt.commit('alt')
 
454
        tree.merge_from_branch(alt.branch)
 
455
        output = self.make_utf8_encoded_stringio()
 
456
        show_tree_status(tree, to_file=output)
 
457
        self.assertContainsRe(output.getvalue(), 'pending merges:')
 
458
        out, err = self.run_bzr('status tree/a')
 
459
        self.assertNotContainsRe(out, 'pending merges:')
 
460
 
445
461
 
446
462
class TestStatusEncodings(TestCaseWithTransport):
447
463