~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: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        out, err = self.run_bzr('push')
99
99
        path = branch_a.get_push_location()
100
100
        self.assertEquals(out,
101
 
                          'Using saved push location: %s\n' 
 
101
                          'Using saved push location: %s\n'
102
102
                          'Pushed up to revision 2.\n'
103
103
                          % local_path_from_url(path))
104
104
        self.assertEqual(err,
109
109
        self.run_bzr('push ../branch_c --remember')
110
110
        self.assertEquals(branch_a.get_push_location(),
111
111
                          branch_c.bzrdir.root_transport.base)
112
 
    
 
112
 
113
113
    def test_push_without_tree(self):
114
114
        # bzr push from a branch that does not have a checkout should work.
115
115
        b = self.make_branch('.')
120
120
        self.assertEndsWith(b2.base, 'pushed-location/')
121
121
 
122
122
    def test_push_new_branch_revision_count(self):
123
 
        # bzr push of a branch with revisions to a new location 
124
 
        # should print the number of revisions equal to the length of the 
 
123
        # bzr push of a branch with revisions to a new location
 
124
        # should print the number of revisions equal to the length of the
125
125
        # local branch.
126
126
        t = self.make_branch_and_tree('tree')
127
127
        self.build_tree(['tree/file'])
186
186
                message='first commit')
187
187
        self.run_bzr('push -d from to-one')
188
188
        self.failUnlessExists('to-one')
189
 
        self.run_bzr('push -d %s %s' 
 
189
        self.run_bzr('push -d %s %s'
190
190
            % tuple(map(urlutils.local_path_to_url, ['from', 'to-two'])))
191
191
        self.failUnlessExists('to-two')
192
192