diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-05 15:56:14 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-05 15:56:14 +0200 |
commit | c69b6b979e3d6bd01ec40e75b92b21f7a391f0ca (patch) | |
tree | 0ed9539c4d8260b3549546b9e395797469de41f3 /lib/git/odb/db.py | |
parent | 7c1169f6ea406fec1e26e99821e18e66437e65eb (diff) | |
download | gitpython-c69b6b979e3d6bd01ec40e75b92b21f7a391f0ca.tar.gz |
Added basic channel implementation including test
restructured odb tests, they are now in an own module to keep the modules small
Diffstat (limited to 'lib/git/odb/db.py')
-rw-r--r-- | lib/git/odb/db.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/git/odb/db.py b/lib/git/odb/db.py index d970b0bf..5d3cc6a3 100644 --- a/lib/git/odb/db.py +++ b/lib/git/odb/db.py @@ -142,11 +142,10 @@ class FileDBBase(object): """Initialize this instance to look for its files at the given root path All subsequent operations will be relative to this path :raise InvalidDBRoot: - :note: The base will perform basic checking for accessability, but the subclass - is required to verify that the root_path contains the database structure it needs""" + :note: The base will not perform any accessablity checking as the base + might not yet be accessible, but become accessible before the first + access.""" super(FileDBBase, self).__init__() - if not os.path.isdir(root_path): - raise InvalidDBRoot(root_path) self._root_path = root_path @@ -333,10 +332,10 @@ class GitObjectDB(LooseObjectDB): def info(self, sha): t = self._git.get_object_header(sha) - return OInfo(t[0], t[1], t[2]) + return OInfo(*t) def stream(self, sha): """For now, all lookup is done by git itself""" t = self._git.stream_object_data(sha) - return OStream(t[0], t[1], t[2], t[3]) + return OStream(*t) |