~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

[merge] jelmer

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        self.build_tree(['hello.txt'])
118
118
        self.runbzr("commit -m empty", retcode=1)
119
119
        self.runbzr("add hello.txt")
120
 
        self.runbzr("commit -m added")
 
120
        self.runbzr("commit -m added")       
121
121
 
122
122
    def test_empty_commit_message(self):
123
123
        self.runbzr("init")
225
225
        self.runbzr('revert')
226
226
        os.chdir('..')
227
227
 
 
228
    def test_status(self):
 
229
        self.runbzr("init")
 
230
        self.build_tree(['hello.txt'])
 
231
        result = self.runbzr("status")
 
232
        self.assert_("unknown:\n  hello.txt\n" in result, result)
 
233
        self.runbzr("add hello.txt")
 
234
        result = self.runbzr("status")
 
235
        self.assert_("added:\n  hello.txt\n" in result, result)
 
236
        self.runbzr("commit -m added")
 
237
        result = self.runbzr("status -r 0..1")
 
238
        self.assert_("added:\n  hello.txt\n" in result, result)
 
239
        self.build_tree(['world.txt'])
 
240
        result = self.runbzr("status -r 0")
 
241
        self.assert_("added:\n  hello.txt\n" \
 
242
                     "unknown:\n  world.txt\n" in result, result)
228
243
 
229
244
    def test_mv_modes(self):
230
245
        """Test two modes of operation for mv"""