| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + [submodule "lib/git/ext/gitdb"] | ||
| 2 | + path = lib/git/ext/gitdb | ||
| 3 | + url = git://gitorious.org/git-python/gitdb.git | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,10 +5,25 @@ | |||
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | 6 | ||
| 7 | 7 | import os | |
| 8 | + import sys | ||
| 8 | 9 | import inspect | |
| 9 | 10 | ||
| 10 | 11 | __version__ = 'git' | |
| 11 | 12 | ||
| 13 | + | ||
| 14 | + #{ Initialization | ||
| 15 | + def _init_externals(): | ||
| 16 | + """Initialize external projects by putting them into the path""" | ||
| 17 | + sys.path.append(os.path.join(os.path.dirname(__file__), 'ext')) | ||
| 18 | + | ||
| 19 | + #} END initialization | ||
| 20 | + | ||
| 21 | + ################# | ||
| 22 | + _init_externals() | ||
| 23 | + ################# | ||
| 24 | + | ||
| 25 | + #{ Imports | ||
| 26 | + | ||
| 12 | 27 | from git.config import GitConfigParser | |
| 13 | 28 | from git.objects import * | |
| 14 | 29 | from git.refs import * | |
@@ -22,8 +37,8 @@ | |||
| 22 | 37 | from git.index import * | |
| 23 | 38 | from git.utils import LockFile, BlockingLockFile | |
| 24 | 39 | ||
| 25 | - # odb is NOT imported intentionally - if you really want it, you should get it | ||
| 26 | - # yourself as its part of the core | ||
| 40 | + #} END imports | ||
| 27 | 41 | ||
| 28 | 42 | __all__ = [ name for name, obj in locals().items() | |
| 29 | - if not (name.startswith('_') or inspect.ismodule(obj)) ] | ||
| 43 | + if not (name.startswith('_') or inspect.ismodule(obj)) ] | ||
| 44 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,18 +10,6 @@ | |||
| 10 | 10 | class InvalidGitRepositoryError(Exception): | |
| 11 | 11 | """ Thrown if the given repository appears to have an invalid format. """ | |
| 12 | 12 | ||
| 13 | - class ODBError(Exception): | ||
| 14 | - """All errors thrown by the object database""" | ||
| 15 | - | ||
| 16 | - class InvalidDBRoot(ODBError): | ||
| 17 | - """Thrown if an object database cannot be initialized at the given path""" | ||
| 18 | - | ||
| 19 | - class BadObject(ODBError): | ||
| 20 | - """The object with the given SHA does not exist""" | ||
| 21 | - | ||
| 22 | - class BadObjectType(ODBError): | ||
| 23 | - """The object had an unsupported type""" | ||
| 24 | - | ||
| 25 | 13 | class NoSuchPathError(OSError): | |
| 26 | 14 | """ Thrown if a path could not be access by the system. """ | |
| 27 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | import git.stats as stats | |
| 10 | 10 | from git.actor import Actor | |
| 11 | 11 | from tree import Tree | |
| 12 | - from git.odb import IStream | ||
| 12 | + from gitdb import IStream | ||
| 13 | 13 | from cStringIO import StringIO | |
| 14 | 14 | import base | |
| 15 | 15 | import utils | |
| Back | FazBrowse Home | New Git URL |
0 commit comments