File tree 6 files changed +12
-12
lines changed
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 3
3
# This module is part of GitDB and is released under
4
4
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
5
5
from lib import *
6
- from gitdb .db import PureLooseObjectODB
6
+ from gitdb .db . py import PureLooseObjectODB
7
7
from gitdb .exc import BadObject
8
8
from gitdb .util import bin_to_hex
9
9
Original file line number Diff line number Diff line change 3
3
# This module is part of GitDB and is released under
4
4
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
5
5
from lib import *
6
- from gitdb .db import (
7
- MemoryDB ,
6
+ from gitdb .db . py import (
7
+ PureMemoryDB ,
8
8
PureLooseObjectODB
9
9
)
10
10
11
- class TestMemoryDB (TestDBBase ):
11
+ class TestPureMemoryDB (TestDBBase ):
12
12
13
13
@with_rw_directory
14
14
def test_writing (self , path ):
15
- mdb = MemoryDB ()
15
+ mdb = PureMemoryDB ()
16
16
17
17
# write data
18
18
self ._assert_object_writing_simple (mdb )
Original file line number Diff line number Diff line change 3
3
# This module is part of GitDB and is released under
4
4
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
5
5
from lib import *
6
- from gitdb .db import PackedDB
6
+ from gitdb .db . py import PurePackedODB
7
7
from gitdb .test .lib import fixture_path
8
8
9
9
from gitdb .exc import BadObject , AmbiguousObjectName
@@ -15,7 +15,7 @@ class TestPackDB(TestDBBase):
15
15
16
16
@with_packs_rw
17
17
def test_writing (self , path ):
18
- pdb = PackedDB (path )
18
+ pdb = PurePackedODB (path )
19
19
20
20
# on demand, we init our pack cache
21
21
num_packs = len (pdb .entities ())
Original file line number Diff line number Diff line change 3
3
# This module is part of GitDB and is released under
4
4
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
5
5
from lib import *
6
- from gitdb .db import ReferenceDB
6
+ from gitdb .db . py import PureReferenceDB
7
7
8
8
from gitdb .util import (
9
9
NULL_BIN_SHA ,
12
12
13
13
import os
14
14
15
- class TestReferenceDB (TestDBBase ):
15
+ class TestPureReferenceDB (TestDBBase ):
16
16
17
17
def make_alt_file (self , alt_path , alt_list ):
18
18
"""Create an alternates file which contains the given alternates.
@@ -27,7 +27,7 @@ def test_writing(self, path):
27
27
NULL_BIN_SHA = '\0 ' * 20
28
28
29
29
alt_path = os .path .join (path , 'alternates' )
30
- rdb = ReferenceDB (alt_path )
30
+ rdb = PureReferenceDB (alt_path )
31
31
assert len (rdb .databases ()) == 0
32
32
assert rdb .size () == 0
33
33
assert len (list (rdb .sha_iter ())) == 0
Original file line number Diff line number Diff line change 4
4
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
5
5
"""Performance data streaming performance"""
6
6
from lib import TestBigRepoR
7
- from gitdb .db import *
7
+ from gitdb .db . py import *
8
8
from gitdb .base import *
9
9
from gitdb .stream import *
10
10
from gitdb .util import (
Original file line number Diff line number Diff line change 5
5
"""Module with examples from the tutorial section of the docs"""
6
6
from lib import *
7
7
from gitdb import IStream
8
- from gitdb .db import PureLooseObjectODB
8
+ from gitdb .db . py import PureLooseObjectODB
9
9
from gitdb .util import pool
10
10
11
11
from cStringIO import StringIO
You can’t perform that action at this time.
0 commit comments