~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-18 08:53:27 UTC
  • mfrom: (1713.1.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060518085327-89822346d9321aba
Merge benchmark selftests(Robert Collins, Martin Pool), bzr add chattiness(Robert Collins), and bzr push revision count reporting improvements(Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        self.assertEqual('0 revision(s) pushed.\n', err)
81
81
        b2 = bzrlib.branch.Branch.open('pushed-location')
82
82
        self.assertEndsWith(b2.base, 'pushed-location/')
 
83
 
 
84
    def test_push_new_branch_revision_count(self):
 
85
        # bzr push of a branch with revisions to a new location 
 
86
        # should print the number of revisions equal to the length of the 
 
87
        # local branch.
 
88
        t = self.make_branch_and_tree('tree')
 
89
        self.build_tree(['tree/file'])
 
90
        t.add('file')
 
91
        t.commit('commit 1')
 
92
        os.chdir('tree')
 
93
        out, err = self.run_bzr('push', 'pushed-to')
 
94
        os.chdir('..')
 
95
        self.assertEqual('', out)
 
96
        self.assertEqual('1 revision(s) pushed.\n', err)