~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tests/test_repofmt.py

Initial stab at repository format support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# groupcompress, a bzr plugin providing improved disk utilisation
 
2
# Copyright (C) 2008 Canonical Limited.
 
3
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License version 2 as published
 
6
# by the Free Software Foundation.
 
7
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
 
13
# You should have received a copy of the GNU General Public License
 
14
# along with this program; if not, write to the Free Software
 
15
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
16
 
17
 
 
18
"""Tests for btree based repository operations."""
 
19
 
 
20
import pprint
 
21
import random
 
22
import zlib
 
23
 
 
24
from bzrlib import index, tests
 
25
from bzrlib import errors as bzrerrors
 
26
from bzrlib import ui
 
27
from bzrlib.plugins import index2
 
28
from bzrlib.plugins.index2 import btree_index, errors, repofmt
 
29
from bzrlib.repository import Repository
 
30
from bzrlib.repofmt.knitrepo import (
 
31
    RepositoryFormatKnit3,
 
32
    )
 
33
from bzrlib.repofmt.pack_repo import (
 
34
    RepositoryFormatKnitPack4,
 
35
    )
 
36
from bzrlib.tests import (
 
37
    TestCaseWithTransport,
 
38
    )
 
39
from bzrlib.transport import get_transport
 
40
 
 
41