~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-03 22:30:56 UTC
  • mfrom: (3644.2.13 index_builder_cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20080903223056-b108iytb38xkznci
(jam) Streamline BTreeBuilder.add_node et al to make btree creation
        faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
 
18
 
from bzrlib import tests, workingtree
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
 
 
17
 
 
18
import os
 
19
 
 
20
from bzrlib import bzrdir, tests, workingtree
19
21
from bzrlib.repofmt.knitrepo import RepositoryFormatKnit4
20
 
from bzrlib.repofmt.knitpack_repo import RepositoryFormatKnitPack4
 
22
from bzrlib.repofmt.pack_repo import RepositoryFormatKnitPack4
21
23
 
22
24
 
23
25
 
29
31
        wt.add(['b', 'b/c'])
30
32
        wt.commit('rev1')
31
33
        self.run_bzr('split a/b')
32
 
        self.run_bzr_error(('.* is not versioned',), 'split q', working_dir='a')
 
34
        self.run_bzr_error(('.* is not versioned',), 'split q')
33
35
 
34
36
    def test_split_repo_failure(self):
35
37
        repo = self.make_repository('branch', shared=True, format='knit')
45
47
        self.build_tree(['tree/subtree/'])
46
48
        tree.add('subtree')
47
49
        tree.commit('added subtree')
48
 
        self.run_bzr_error(('must upgrade your branch at .*tree','rich roots'),
 
50
        self.run_bzr_error(('must upgrade your branch at .*tree',),
49
51
                           'split tree/subtree')
50
52
 
51
53
    def split_formats(self, format, repo_format):