~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2007-03-14 20:47:17 UTC
  • mto: (2353.4.2 locking)
  • mto: This revision was merged to the branch mainline in revision 2360.
  • Revision ID: john@arbash-meinel.com-20070314204717-htynwogv97fqr22a
Cleanup errors, and change ReadOnlyLockError to pass around more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        wt = self.make_branch_and_tree('a')
28
28
        wt.add(['b', 'b/c'])
29
29
        wt.commit('rev1')
30
 
        self.run_bzr('split a/b')
31
 
        self.run_bzr_error(('.* is not versioned',), 'split q')
 
30
        self.run_bzr('split', 'a/b')
 
31
        self.run_bzr_error(('.* is not versioned',), 'split', 'q')
32
32
 
33
33
    def test_split_repo_failure(self):
34
34
        repo = self.make_repository('branch', shared=True, format='knit')
37
37
        wt = a_branch.create_checkout('a', lightweight=True)
38
38
        wt.add(['b', 'b/c', 'b/c/d'], ['b-id', 'c-id', 'd-id'])
39
39
        wt.commit('added files')
40
 
        self.run_bzr_error(('must upgrade your branch at .*a',), 'split a/b')
 
40
        self.run_bzr_error(('must upgrade your branch at .*a',), 'split', 
 
41
                            'a/b')