~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-07-11 03:40:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050711034002-575d84b4c7514542
- commit command refuses unless something is changed or --unchanged is given

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
 
74
74
 
 
75
class EmptyCommit(InTempDir):
 
76
    def runTest(self):
 
77
        self.runcmd("bzr init")
 
78
        self.build_tree(['hello.txt'])
 
79
        self.runcmd("bzr commit -m empty", retcode=1)
 
80
        self.runcmd("bzr add hello.txt")
 
81
        self.runcmd("bzr commit -m added")
 
82
 
 
83
 
 
84
 
75
85
class OldTests(InTempDir):
76
86
    # old tests moved from ./testbzr
77
87
    def runTest(self):
256
266
        runcmd('bzr pull ../branch2')
257
267
        chdir('.bzr')
258
268
        runcmd('bzr pull')
259
 
        runcmd('bzr commit -m empty')
 
269
        runcmd('bzr commit --unchanged -m empty')
260
270
        runcmd('bzr pull')
261
271
        chdir('../../branch2')
262
272
        runcmd('bzr pull')
263
 
        runcmd('bzr commit -m empty')
 
273
        runcmd('bzr commit --unchanged -m empty')
264
274
        chdir('../branch1')
265
 
        runcmd('bzr commit -m empty')
 
275
        runcmd('bzr commit --unchanged -m empty')
266
276
        runcmd('bzr pull', retcode=1)
267
277
        chdir ('..')
268
278
 
372
382
                InvalidCommands,
373
383
                RevertCommand,
374
384
                OldTests,
 
385
                EmptyCommit,
375
386
                ]