~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2010-10-08 08:15:14 UTC
  • mto: This revision was merged to the branch mainline in revision 5498.
  • Revision ID: andrew.bennetts@canonical.com-20101008081514-dviqzrdfwyzsqbz2
Split NEWS into per-release doc/en/release-notes/bzr-*.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
18
18
import os
19
19
 
20
 
from bzrlib import bzrdir, repository, tests, workingtree
 
20
from bzrlib import (
 
21
    bzrdir,
 
22
    osutils,
 
23
    repository,
 
24
    tests,
 
25
    workingtree,
 
26
    )
21
27
 
22
28
 
23
29
class TestJoin(tests.TestCaseWithTransport):
50
56
    def test_join_error(self):
51
57
        base_tree, sub_tree = self.make_trees()
52
58
        os.mkdir('tree/subtree2')
53
 
        os.rename('tree/subtree', 'tree/subtree2/subtree')
 
59
        osutils.rename('tree/subtree', 'tree/subtree2/subtree')
54
60
        self.run_bzr_error(
55
61
            ('Cannot join .*subtree.  Parent directory is not versioned',),
56
62
             'join tree/subtree2/subtree')
81
87
    def test_references_check_repository_support(self):
82
88
        """Users are stopped from adding a reference that can't be committed."""
83
89
        # in 0.15 the default format has a dirstate workingtree, that can
84
 
        # support tree references, but the default repository format 
 
90
        # support tree references, but the default repository format
85
91
        # cannot.
86
92
        tree = self.make_branch_and_tree('tree', format='dirstate')
87
93
        tree2 = self.make_branch_and_tree('tree/subtree')