Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c1faef

Browse files
committed
Removed odb from project, it is now used as a submodule named gitdb, which was added instead
Adjusted all imports to deal with the changed package names
1 parent86ea635 commit6c1faef

File tree

20 files changed

+34
-1363
lines changed

20 files changed

+34
-1363
lines changed

‎.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

‎lib/git/__init__.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,25 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
importos
8+
importsys
89
importinspect
910

1011
__version__='git'
1112

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+
1227
fromgit.configimportGitConfigParser
1328
fromgit.objectsimport*
1429
fromgit.refsimport*
@@ -22,8 +37,8 @@
2237
fromgit.indeximport*
2338
fromgit.utilsimportLockFile,BlockingLockFile
2439

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
2741

2842
__all__= [nameforname,objinlocals().items()
29-
ifnot (name.startswith('_')orinspect.ismodule(obj)) ]
43+
ifnot (name.startswith('_')orinspect.ismodule(obj)) ]
44+

‎lib/git/errors.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@
1010
classInvalidGitRepositoryError(Exception):
1111
""" Thrown if the given repository appears to have an invalid format. """
1212

13-
classODBError(Exception):
14-
"""All errors thrown by the object database"""
15-
16-
classInvalidDBRoot(ODBError):
17-
"""Thrown if an object database cannot be initialized at the given path"""
18-
19-
classBadObject(ODBError):
20-
"""The object with the given SHA does not exist"""
21-
22-
classBadObjectType(ODBError):
23-
"""The object had an unsupported type"""
24-
2513
classNoSuchPathError(OSError):
2614
""" Thrown if a path could not be access by the system. """
2715

‎lib/git/ext/gitdb

Submodule gitdb added at 10fef8f

‎lib/git/objects/commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
importgit.statsasstats
1010
fromgit.actorimportActor
1111
fromtreeimportTree
12-
fromgit.odbimportIStream
12+
fromgitdbimportIStream
1313
fromcStringIOimportStringIO
1414
importbase
1515
importutils

‎lib/git/odb/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp