~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-05-19 06:04:00 UTC
  • mfrom: (1714 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1717.
  • Revision ID: mbp@sourcefrog.net-20060519060400-df4657a818d9008a
merge bzr.dev

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)