summaryrefslogtreecommitdiff
path: root/gitdb/stream.py
Commit message (Collapse)AuthorAgeFilesLines
* support optional gitdb_speedupsThomas Grainger2016-10-041-1/+1
|
* Spelling fixesVille Skyttä2016-07-271-1/+1
|
* Adjusted stream logic to make it work on all tested platforms ... .Sebastian Thiel2015-01-121-3/+9
| | | | | | | | | | | | | | | | | As taken from https://github.com/gitpython-developers/gitdb/blob/master/gitdb/stream.py#L292 -> NOTE: Behavior changed in PY2.7 onward, which requires special handling to make the tests work properly. They are thorough, and I assume it is truly working. Why is this logic as convoluted as it is ? Please look at the table in https://github.com/gitpython-developers/gitdb/issues/19 to learn about the test-results. Bascially, on py2.6, you want to use branch 1, whereas on all other python version, the second branch will be the one that works. However, the zlib VERSIONs as well as the platform check is used to further match the entries in the table in the github issue. This is it ... it was the only way I could make this work everywhere. IT's CERTAINLY GOING TO BITE US IN THE FUTURE ... . <- Fixes #19
* minor spell fixes + empty line unification + comparison for python 2.6Yaroslav Halchenko2015-01-081-3/+3
|
* 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
* Fixed possible file-handle leakSebastian Thiel2015-01-071-3/+11
| | | | | Configured travis to artificially restrict handle count to protect from regression in that regard
* Applied autopep8Sebastian Thiel2015-01-041-23/+29
| | | | autopep8 -v -j 8 --max-line-length 120 --in-place --recursive
* Increased initial size of decompressed data to obtain loose object header ↵Sebastian Thiel2015-01-011-2/+5
| | | | | | | | | information This appears to fix https://github.com/gitpython-developers/GitPython/issues/220 , in this particular case. Nonetheless, we might just have gotten lucky here, and the actual issue is not yet solved and can thus re-occour. It would certainly be best to churn through plenty of loose objects to assure this truly works now. Maybe the pack could be recompressed as loose objects to get a sufficiently large data set
* It seems zlib works differently in py26, and thus requires special handling.py2n3Sebastian Thiel2014-11-141-5/+10
| | | | This also explains why the tests suddenly stopped working - after all, the interpreter changed ... .
* Fixed incorrect computation of compressed bytes read in zlib decompression ↵Sebastian Thiel2014-11-141-1/+4
| | | | stream.
* reduced usage of force_bytes as clients are expected to pass bytes.Sebastian Thiel2014-11-131-5/+1
| | | | | | It was useful for debugging though, maybe an explicit type assertions would help others ? As 'others' will be gitpython, I suppose I can handle it myself
* Now tests work consistently in py2 and 3Sebastian Thiel2014-11-131-5/+3
| | | | It's a nice way of saying that there is still one failing, consistently.
* Fixed all applicable lint issuesSebastian Thiel2014-11-131-3/+1
|
* Merge branch 'kevin-brown-issue_4' into py2n3Sebastian Thiel2014-11-131-189/+204
|\ | | | | | | | | | | | | | | | | | | Conflicts: gitdb/base.py gitdb/fun.py gitdb/pack.py gitdb/stream.py gitdb/test/lib.py gitdb/util.py
| * Convert types to bytesKevin Brown2014-07-211-2/+2
| | | | | | | | | | This makes it easier to deal with things internally as now everything is passed as bytes.
| * Start up compat and encoding filesKevin Brown2014-07-161-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Making a bit of progress...Kevin Brown2014-07-131-16/+10
| | | | | | | | | | | | | | 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-1/+1
| |
| * More bytes handlingKevin Brown2014-07-131-2/+2
| |
| * Use memoryview instead of bufferKevin Brown2014-07-131-1/+4
| | | | | | | | | | | | | | This uses memoryview by default, which is supported in Python 3 and Python 2.7, but not Python 2.6, and falls back to the old `buffer` type in Python 2.6 and when the memoryview does not support the type, such as when mmap instaces are passed in.
| * Pick off the low hanging fruitKevin Brown2014-07-131-18/+25
| | | | | | | | | | | | | | | | | | | | | | 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-131-160/+158
| |
* | Minor adjustments to adapt to changes in async (due to be removed anyway)Sebastian Thiel2014-11-131-2/+1
|/
* tabs to spacesSebastian Thiel2014-02-091-644/+644
|
* Fixed up docs for upcoming release. Bumped version to 0.5.3Sebastian Thiel2011-06-131-3/+3
|
* initial version of pack writing, which seems to work, but still needs some ↵Sebastian Thiel2011-03-311-1/+17
| | | | more testing and verification
* preprended all modules with licensing informationSebastian Thiel2011-02-231-0/+4
|
* moved all relevant files into the gitdb folder.Sebastian Thiel2010-11-301-0/+674
Submodule relinked to point to new github location, and moved as well