summaryrefslogtreecommitdiff
path: root/git/util.py
Commit message (Collapse)AuthorAgeFilesLines
* Autopep8 fixes with maximum line length 120Craig Northway2014-07-251-156/+185
|
* tabs to 4 spaces - overall state of this branch is desolate, but fixable. ↵Sebastian Thiel2014-02-091-751/+751
| | | | Needs plenty of work
* Fixed 'Inappropriate ioctl for device' problem on posix systemsSebastian Wallat2012-02-021-7/+14
|
* util: pick the type of memory manager based on the python version, to have ↵Sebastian Thiel2011-07-051-1/+6
| | | | | | | optimal results in all cases (at least the ones I can test) pack: now works properly with a sliding memory manager test_packedodb_pure: fixed very memory hungry implementation by using an iterator. This will of course reduce the measured performance a bit, but 750MB of memory is just a little bit too much for an ordinary test. Maybe it would be alright to just reduce the number of items ... but performance isn't a strength of python after all
* util: added global sliding memory managerSebastian Thiel2011-07-051-0/+10
| | | | pack: now using the global sliding memory manager. The current implementation uses assumes that packs are small enough to fit into memory right away, where the window size will be about 1 GB, as it never calls use_window() to assure the required offset actually exists. It will need to change to set the window appropriately.
* Submodule now uses a specialized method to remove its trees to allow ↵Sebastian Thiel2011-06-131-1/+16
| | | | read-only files to be removed on windows as well
* util: Added test for iterable list, and implemented __contains__ and __del__ ↵Sebastian Thiel2011-06-081-0/+32
| | | | functionality
* log: non-existing logs no longer throw an exception, but are ignored. Fixed ↵Sebastian Thiel2011-06-081-0/+3
| | | | critical bug which caused packed-ref files to be written with native line endings, which made git fail to parse it. I wonder why I never noticed this before, or ignored it. Unbelievable \!
* First run in order to fix the remote handling. Cleaned up interfaces and ↵Sebastian Thiel2011-06-071-127/+1
| | | | figured out that the implementation really should be specific to the git command. This leaves the interface open for other implemntations which use a different way to provide feedback (as we do not make assumptions about the format of a feedback line)
* Added all code from gitdb to gitpython. Next is to make it generally work. ↵Sebastian Thiel2011-05-051-24/+739
| | | | Then the tests will need some work
* Made most primal imports work, but stopped here as there are many more ↵Sebastian Thiel2011-05-051-0/+1
| | | | changes when doing the merge
* Moved rev_parse code into gitdb, this probably broke pretty much here, which ↵Sebastian Thiel2011-04-291-17/+2
| | | | is still to be fixed of course
* Updated objects to use the ones defined in gitdb as basis. Only the ↵Sebastian Thiel2011-04-071-63/+3
| | | | submodule implementation is left in git-python as it requires some advanced features. No tests where run yet
* Removed all parts of the reference implementation which doesn't require the ↵Sebastian Thiel2011-04-071-292/+19
| | | | git command. everything else was moved to GitDB. None of the tests is yet expected to run, although git-python should have less trouble getting the tests back up running than GitDB. plenty of code needs to be de-duplicated though in case of the tests, which will be some work
* Moved push and fetch methods partly from remote to the gitcmdobjdb ↵Sebastian Thiel2011-04-051-0/+8
| | | | implementation, including related types. It doesn't yet work, and the omnipresence of the repo imposes a problem right now, as the required ref functionality is not yet part of the gitdb specification. theoretically, the whole ref implementation has to move into gitdb
* OSX Signal handling: removed previous hack to fix it somehow using sleep - ↵Sebastian Thiel2011-01-121-9/+1
| | | | the error was caused by PySide which, when instantiating a QApplication, changed the signal handlers to interrupt, instead of retry operating system calls, which caused git-python to fail subsequently. signal.siginterrupt can be used to fix this behaviour after an QApplication was instatiated.
* sleep ui hack fix: removed platform.system() to use sys.platform instead, as ↵Sebastian Thiel2011-01-121-3/+2
| | | | platform.system makes a system call itself
* Added the bugfix code as a utility function to be reused wherever this ↵Andreas Gutsche2011-01-061-1/+9
| | | | specific subprocess bug occurs.
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+602
adjusted