| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,13 +4,22 @@ Changelog | |||
| 4 | 4 | ||
| 5 | 5 | NEXT | |
| 6 | 6 | ==== | |
| 7 | + * ### Class Renames ### | ||
| 8 | + | ||
| 9 | + * Renamed **GitCmdObjectDB** to **CmdGitDB** (analogue to **PureCmdDB**) | ||
| 10 | + | ||
| 7 | 11 | * ### Interface Changes ### | |
| 12 | + | ||
| 8 | 13 | * SymbolicReference | |
| 14 | + | ||
| 9 | 15 | * object_binsha property added | |
| 10 | - * Blob Type | ||
| 11 | - * Added mode constants to ease the manual creation of blobs | ||
| 16 | + | ||
| 17 | + * Blob Type | ||
| 18 | + | ||
| 19 | + * Added mode constants to ease the manual creation of blobs | ||
| 12 | 20 | ||
| 13 | 21 | * ### Module Changes ### | |
| 22 | + | ||
| 14 | 23 | * Removed rev_parse function from git.repo.fun - the respective functionality is available only through the repository's rev_parse method, which might in turn translate to any implementation. | |
| 15 | 24 | ||
| 16 | 25 | 0.3.1 Beta 2 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,9 +37,9 @@ def _init_externals(): | |||
| 37 | 37 | from git.exc import * | |
| 38 | 38 | from git.db import * | |
| 39 | 39 | from git.cmd import Git | |
| 40 | - from git.repo import Repo | ||
| 41 | 40 | from git.remote import * | |
| 42 | 41 | from git.index import * | |
| 42 | + from git.repo import Repo | ||
| 43 | 43 | from git.util import ( | |
| 44 | 44 | LockFile, | |
| 45 | 45 | BlockingLockFile, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1 +1,2 @@ | |||
| 1 | 1 | ||
| 2 | + from complex import * | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | 1 | """Module with our own git implementation - it uses the git command""" | |
| 2 | - from exc import ( | ||
| 2 | + from git.exc import ( | ||
| 3 | 3 | GitCommandError, | |
| 4 | 4 | BadObject | |
| 5 | - ) | ||
| 5 | + ) | ||
| 6 | 6 | ||
| 7 | 7 | from git.base import ( | |
| 8 | 8 | OInfo, | |
@@ -13,10 +13,7 @@ | |||
| 13 | 13 | bin_to_hex, | |
| 14 | 14 | hex_to_bin | |
| 15 | 15 | ) | |
| 16 | - from git.db.py import ( | ||
| 17 | - PureGitDB, | ||
| 18 | - PureLooseObjectODB | ||
| 19 | - ) | ||
| 16 | + from git.db.py.loose import PureLooseObjectODB | ||
| 20 | 17 | from git.util import RemoteProgress | |
| 21 | 18 | from git.db.py.base import TransportDB | |
| 22 | 19 | from git.db.interface import FetchInfo as GitdbFetchInfo | |
@@ -25,18 +22,18 @@ | |||
| 25 | 22 | from git.util import join_path | |
| 26 | 23 | from git.util import join | |
| 27 | 24 | ||
| 28 | - from refs import ( | ||
| 29 | - Reference, | ||
| 30 | - RemoteReference, | ||
| 31 | - SymbolicReference, | ||
| 32 | - TagReference | ||
| 33 | - ) | ||
| 25 | + from git.refs import ( | ||
| 26 | + Reference, | ||
| 27 | + RemoteReference, | ||
| 28 | + SymbolicReference, | ||
| 29 | + TagReference | ||
| 30 | + ) | ||
| 34 | 31 | ||
| 35 | 32 | import re | |
| 36 | 33 | import sys | |
| 37 | 34 | ||
| 38 | 35 | ||
| 39 | - __all__ = ('GitCmdObjectDB', 'PureGitDB', 'RemoteProgress' ) | ||
| 36 | + __all__ = ('CmdGitDB', 'RemoteProgress' ) | ||
| 40 | 37 | ||
| 41 | 38 | ||
| 42 | 39 | class PushInfo(GitdbPushInfo): | |
@@ -269,7 +266,7 @@ def _from_line(cls, repo, line, fetch_line): | |||
| 269 | 266 | return cls(remote_local_ref, flags, note, old_commit_binsha) | |
| 270 | 267 | ||
| 271 | 268 | ||
| 272 | - class GitCmdObjectDB(PureLooseObjectODB, TransportDB): | ||
| 269 | + class CmdGitDB(PureLooseObjectODB, TransportDB): | ||
| 273 | 270 | """A database representing the default git object store, which includes loose | |
| 274 | 271 | objects, pack files and an alternates file | |
| 275 | 272 | ||
@@ -279,7 +276,7 @@ class GitCmdObjectDB(PureLooseObjectODB, TransportDB): | |||
| 279 | 276 | """ | |
| 280 | 277 | def __init__(self, root_path, git): | |
| 281 | 278 | """Initialize this instance with the root and a git command""" | |
| 282 | - super(GitCmdObjectDB, self).__init__(root_path) | ||
| 279 | + super(CmdGitDB, self).__init__(root_path) | ||
| 283 | 280 | self._git = git | |
| 284 | 281 | ||
| 285 | 282 | @classmethod | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,11 +3,4 @@ | |||
| 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 | ||
| 6 | - from base import * | ||
| 7 | - from loose import * | ||
| 8 | - from mem import * | ||
| 9 | - from pack import * | ||
| 10 | - from git import * | ||
| 11 | - from ref import * | ||
| 12 | - from resolve import * | ||
| 13 | - from transport import * | ||
| 6 | + from complex import * | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 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 | """Contains basic implementations for the interface building blocks""" | |
| 6 | - | ||
| 7 | 6 | from git.db.interface import * | |
| 8 | 7 | ||
| 9 | 8 | from git.util import ( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,12 +3,11 @@ | |||
| 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 | """Contains the MemoryDatabase implementation""" | |
| 6 | - from loose import PureLooseObjectODB | ||
| 7 | 6 | from base import ( | |
| 8 | 7 | PureObjectDBR, | |
| 9 | 8 | PureObjectDBW | |
| 10 | 9 | ) | |
| 11 | - | ||
| 10 | + from loose import PureLooseObjectODB | ||
| 12 | 11 | from git.base import ( | |
| 13 | 12 | OStream, | |
| 14 | 13 | IStream, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ def _update_dbs_from_ref_file(self): | |||
| 31 | 31 | dbcls = self.ObjectDBCls | |
| 32 | 32 | if dbcls is None: | |
| 33 | 33 | # late import | |
| 34 | - from git import PureGitODB | ||
| 34 | + from complex import PureGitODB # TODO: This should be a configurable for flexibility | ||
| 35 | 35 | dbcls = PureGitODB | |
| 36 | 36 | # END get db type | |
| 37 | 37 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,8 @@ | |||
| 3 | 3 | ||
| 4 | 4 | from git.db.interface import ReferencesMixin | |
| 5 | 5 | from git.exc import BadObject | |
| 6 | - from git.ref import SymbolicReference | ||
| 7 | - from git.object.base import Object | ||
| 6 | + from git.refs import SymbolicReference | ||
| 7 | + from git.objects.base import Object | ||
| 8 | 8 | from git.util import ( | |
| 9 | 9 | join, | |
| 10 | 10 | isdir, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments