summaryrefslogtreecommitdiff
path: root/gitdb/db
Commit message (Collapse)AuthorAgeFilesLines
* fix(io): BREAKING, wrap more out-stream usagesKostis Anagnostopoulos2016-10-251-3/+3
| | | | | | + chrore(deps): depend on *contextlib2* for `ExitStack` in PY2. + refact(util): BREAKING API move consts out of utils. + style(pep8): fixe all sources.
* style(listuple): use literals for empty lists/tuplesKostis Anagnostopoulos2016-10-253-5/+5
|
* fix(win): FIX and HIDE 2 win-errors remainingv2.1.0.dev1Kostis Anagnostopoulos2016-10-242-5/+6
| | | | | + File-in-use errors were fixed with `gitdb.util.mman.collect()`! + This call is disabled `gitdb.util.HIDE_WINDOWS_KNOWN_ERRORS == False`. + Depend on latest smmp `v2.1.0.dev1` tag
* feat(io): breaking API: retrofit Packers as context-managers!Kostis Anagnostopoulos2016-10-241-20/+26
| | | | | | | | | | + Packers MUST be invoked inside `Withh...` blocks, or `_cursor` won't exist! + Had to drop NotLazy for their hierarchy :-( + Count entrances/exits. + feat(util: add `rmtree()` for READ_ONLY files on Windows. 3-->2 Windows TCs now fail.
* feat(io): Retrofit streams as context-managers.Kostis Anagnostopoulos2016-10-241-7/+6
| | | | | + feat(util): add logger. + feat(util): add suppress-ex context-handler (from PY3 sources).
* feat(src): subst `reduce` with `sum` for size calcsKostis Anagnostopoulos2016-10-243-6/+3
| | | | + fix(loose-db): fix bad-attr in ex-message
* Merge pull request #28 from scop/withSebastian Thiel2016-07-301-1/+2
|\ | | | | Handle more file open/close with "with"
| * Handle more file open/close with "with"Ville Skyttä2016-07-271-1/+2
| |
* | Spelling fixesVille Skyttä2016-07-273-3/+3
|/
* fix(loose): avoid unnecessary file rename on windowsSebastian Thiel2015-10-041-4/+9
| | | | | | This should workaround possible permission issues. Related to https://github.com/gitpython-developers/GitPython/issues/353
* docs(gitdb): discourage usage of GitDB typeSebastian Thiel2015-08-221-1/+5
|
* Protected stream closure against possibilty of being a bytesSebastian Thiel2015-01-071-1/+2
| | | | | | For some reason, it gets bytes where it did expect a stream ... . Probably I should have figured out where this was input, instead of fixing it the brutal way
* Applied autopep8Sebastian Thiel2015-01-046-15/+21
| | | | autopep8 -v -j 8 --max-line-length 120 --in-place --recursive
* Now tests work consistently in py2 and 3Sebastian Thiel2014-11-132-5/+4
| | | | It's a nice way of saying that there is still one failing, consistently.
* Fully removed all async dependenciesSebastian Thiel2014-11-133-66/+1
|
* Fixed all applicable lint issuesSebastian Thiel2014-11-135-18/+1
|
* Made sure xrange is used instead of range in python 2Sebastian Thiel2014-11-131-1/+2
| | | | | | | range in py2 will return a list, which can mean a lot of time and memory is spent on generating it even though it's just used for iteration. Simplified implementation of MAXSIZE
* Fixed a few more encoding issuesKevin Brown2014-07-162-2/+6
| | | | | | | | Bytes should always be returned from the streams, so the tests should be checking against byte strings instead of text strings. This also fixes the `sha_iter` as it relied on the Python 2 `iterkeys` which has been renamed to `keys` in Python 3.
* Start up compat and encoding filesKevin Brown2014-07-162-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | There were a few things which were being reused consistently for compatibility purposes, such as the `buffer`/`memoryview` functions as well as the `izip` method which needed to be aliased for Python 3. The `buffer` function was taken from `smmap` [1] and reworked slightly to handle the optional third parameter. This also adds a compatibility file dedicated entirely to encoding issues, which seem to be the biggest problem. The main functions were taken in part from the Django project [2] and rewritten slightly because our needs are a bit more narrow. A constants file has been added to consistently handle the constants which are required for the gitdb project in the core and the tests. This is part of a greater plan to reorganize the `util.py` file included in this project. This points the async extension back at the original repository and points it to the latest commit. [1]: https://github.com/Byron/smmap/blob/1af4b42a2354acbb53c7956d647655922658fd80/smmap/util.py#L20-L26 [2]: https://github.com/django/django/blob/b8d255071ead897cf68120cd2fae7c91326ca2cc/django/utils/encoding.py
* Fix Python 2 failuresKevin Brown2014-07-132-4/+4
|
* Making a bit of progress...Kevin Brown2014-07-131-7/+1
| | | | | | | This changes the internals to use BytesIO over StringIO, which fixed a few of the failing tests in Python 3. We are only importing from `io` now, instead of the entire chain, as this is available in Python 2.6+.
* Bytes for everyone!Kevin Brown2014-07-131-4/+4
|
* More bytes handlingKevin Brown2014-07-131-0/+10
|
* Pick off the low hanging fruitKevin Brown2014-07-137-43/+56
| | | | | | | | | | | This fixes most of the import errors that came from using the implicit relative imports that Python 2 supports. This also fixes the use of `xrange`, which has replaced `range` in Python 3. The same has happened for `izip`, which is also being aliased. The octal number syntax changed in Python 3, so we are now converting from strings using the `int` built-in function, which will produce the same output across both versions of Python.
* Automated PEP 8 fixesKevin Brown2014-07-136-234/+227
|
* tabs to spacesSebastian Thiel2014-02-096-945/+945
|
* Fixed up docs for upcoming release. Bumped version to 0.5.3Sebastian Thiel2011-06-133-6/+7
|
* preprended all modules with licensing informationSebastian Thiel2011-02-237-0/+28
|
* moved all relevant files into the gitdb folder.Sebastian Thiel2010-11-307-0/+1057
Submodule relinked to point to new github location, and moved as well