~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-10-06 06:52:09 UTC
  • mfrom: (1415)
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1418.
  • Revision ID: mbp@sourcefrog.net-20051006065209-3e4d5db3b006981d
[merge] from robert, get ancestry from inventory weave 
rather than storing separately

The ancestry weave is now strictly redundant and doesn't need 
to be stored.

You should ugprade again after taking this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import sys
31
31
import os
32
32
 
33
 
from bzrlib.selftest import TestCaseInTempDir, BzrTestBase
34
33
from bzrlib.branch import Branch
 
34
from bzrlib.errors import BzrCommandError
35
35
from bzrlib.osutils import has_symlinks
 
36
from bzrlib.selftest import TestCaseInTempDir, BzrTestBase
36
37
from bzrlib.selftest.HTTPTestUtil import TestCaseWithWebserver
37
38
 
38
39
 
103
104
        self.runbzr("add hello.txt")
104
105
        self.runbzr("commit -m added")
105
106
 
 
107
    def test_empty_commit_message(self):
 
108
        self.runbzr("init")
 
109
        file('foo.c', 'wt').write('int main() {}')
 
110
        self.runbzr(['add', 'foo.c'])
 
111
        self.runbzr(["commit", "-m", ""] , retcode=1) 
 
112
 
106
113
    def test_ignore_patterns(self):
107
114
        from bzrlib.branch import Branch
108
115