~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

remove all trailing whitespace from bzr source

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        out, err = self.run_bzr('push')
88
88
        path = branch_a.get_push_location()
89
89
        self.assertEquals(out,
90
 
                          'Using saved push location: %s\n' 
 
90
                          'Using saved push location: %s\n'
91
91
                          'Pushed up to revision 2.\n'
92
92
                          % local_path_from_url(path))
93
93
        self.assertEqual(err,
98
98
        self.run_bzr('push ../branch_c --remember')
99
99
        self.assertEquals(branch_a.get_push_location(),
100
100
                          branch_c.bzrdir.root_transport.base)
101
 
    
 
101
 
102
102
    def test_push_without_tree(self):
103
103
        # bzr push from a branch that does not have a checkout should work.
104
104
        b = self.make_branch('.')
109
109
        self.assertEndsWith(b2.base, 'pushed-location/')
110
110
 
111
111
    def test_push_new_branch_revision_count(self):
112
 
        # bzr push of a branch with revisions to a new location 
113
 
        # should print the number of revisions equal to the length of the 
 
112
        # bzr push of a branch with revisions to a new location
 
113
        # should print the number of revisions equal to the length of the
114
114
        # local branch.
115
115
        t = self.make_branch_and_tree('tree')
116
116
        self.build_tree(['tree/file'])
175
175
                message='first commit')
176
176
        self.run_bzr('push -d from to-one')
177
177
        self.failUnlessExists('to-one')
178
 
        self.run_bzr('push -d %s %s' 
 
178
        self.run_bzr('push -d %s %s'
179
179
            % tuple(map(urlutils.local_path_to_url, ['from', 'to-two'])))
180
180
        self.failUnlessExists('to-two')
181
181