summaryrefslogtreecommitdiff
path: root/git/db/py/complex.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-05-30 01:23:28 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-05-30 01:23:28 +0200
commit112bb1672d6b28f203e7839e320b985486636800 (patch)
tree755fb8dcab211678697f6e03cf37122592b7c573 /git/db/py/complex.py
parent0996049122842a343e0ea7fbbecafddb2b4ba9d3 (diff)
downloadgitpython-112bb1672d6b28f203e7839e320b985486636800.tar.gz
Finished moving all repository methods to the respective interfaces and implementations. It seems theoretically work together now, although it clearly is much more complex than ever before.
The repo package was slimmed down to being a module once again, which is only there for compatability actually
Diffstat (limited to 'git/db/py/complex.py')
-rw-r--r--git/db/py/complex.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/git/db/py/complex.py b/git/db/py/complex.py
index 6504b3ed..efcbb2ba 100644
--- a/git/db/py/complex.py
+++ b/git/db/py/complex.py
@@ -2,6 +2,7 @@
#
# This module is part of PureGitDB and is released under
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
+from git.db.interface import HighLevelRepository
from base import (
PureCompoundDB,
PureObjectDBW,
@@ -9,6 +10,7 @@ from base import (
PureRepositoryPathsMixin,
PureConfigurationMixin,
PureAlternatesFileMixin,
+ PureIndexDB,
)
from resolve import PureReferencesMixin
@@ -36,8 +38,7 @@ import os
__all__ = ('PureGitODB', 'PureGitDB', 'PureCompatibilityGitDB')
-class PureGitODB(PureRootPathDB, PureObjectDBW, PureCompoundDB,
- PureSubmoduleDB, PureAlternatesFileMixin):
+class PureGitODB(PureRootPathDB, PureObjectDBW, PureCompoundDB):
"""A git-style object-only database, which contains all objects in the 'objects'
subdirectory.
:note: The type needs to be initialized on the ./objects directory to function,
@@ -102,7 +103,12 @@ class PureGitODB(PureRootPathDB, PureObjectDBW, PureCompoundDB,
-class PureGitDB(PureGitODB, PureRepositoryPathsMixin, PureConfigurationMixin, PureReferencesMixin):
+class PureGitDB(PureGitODB,
+ PureRepositoryPathsMixin, PureConfigurationMixin,
+ PureReferencesMixin, PureSubmoduleDB, PureAlternatesFileMixin,
+ PureIndexDB,
+ # HighLevelRepository Currently not implemented !
+ ):
"""Git like database with support for object lookup as well as reference resolution.
Our rootpath is set to the actual .git directory (bare on unbare).