summaryrefslogtreecommitdiff
path: root/lib/git/objects/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel2010-06-291-365/+0
| | | | the submodules's naming conventions
* Updated and fixed sphinx API docs, which included one quick skim-throughSebastian Thiel2010-06-291-4/+4
|
* Adjusted all files to (hopefully) deal with the fact that all objects now ↵Sebastian Thiel2010-06-251-31/+31
| | | | | | | use 20 byte sha's internally as it is closer to the GitDB implementation Switched all remaining files back to tabs Adjusted all remaining docstrings to suit the sphinx doc convention - its likely that there are many of docstring syntax errors though
* Moved small types that had their own module into the utils moduleSebastian Thiel2010-06-141-1/+56
|
* commit.create_from_tree now uses pure python implementation, fixed message ↵Sebastian Thiel2010-06-031-7/+18
| | | | | | parsing which truncated newlines although it was ilegitimate. Its up to the reader to truncate therse, nowhere in the git code I could find anyone adding newlines to commits where it is written Added performance tests for serialization, it does about 5k commits per second if writing to tmpfs
* commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel2010-06-021-0/+17
| | | | | | | performance is slightly better git.cmd: added method to provide access to the content stream directly. This is more efficient if large objects are handled, if it is actually used test.helpers: removed unnecessary code
* commit: initial version of commit_from_tree which could create commit ↵Sebastian Thiel2010-06-021-148/+263
| | | | objects if it could serialize itself
* Add support for time zone information in tags and commits.Rick Copeland2010-04-271-4/+4
| | | | | | | This commit includes - an update to git.objects.utils:parse_actor_and_date to parse the timezone offset - updates to the git.objects.Commit and git.objects.Tag objects to support *_tz_offset attributes - updates to tests in test.git.test_commit and test.git.test_refs to check for appropriate *_tz_offset attributes
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-148/+148
|
* Traversable.traverse: Added as_edge option allowing to receive the source of ↵Sebastian Thiel2009-11-271-11/+19
| | | | the item as well to enable predicates to do more proper checking
* Fixed issue with commit traversal due to missing visit_once in the traversal ↵Sebastian Thiel2009-11-271-0/+11
| | | | method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive
* ItemTraversal: Predicate and prune functions now provide depth information, ↵Sebastian Thiel2009-11-271-6/+6
| | | | allowing the callee to know more about its environment
* improved performance of item traversal, its nearly as fast as it was with ↵Sebastian Thiel2009-11-271-11/+2
| | | | the first very pure implementation
* tree: added traversal method, adjusted testsSebastian Thiel2009-11-261-1/+1
| | | | Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\!
* objects.utils: Added Traversable base and implemented it for commits ↵Sebastian Thiel2009-11-261-0/+85
| | | | including a test
* added Object.data_stream property allowing to stream object data ↵Sebastian Thiel2009-10-221-0/+18
| | | | directly.Considering the implementation of the git commnd which temporarily keeps it in a cache, it doesnt make a huge diffence as the data is kept in memory while streaming. Only good thing is that it is in a different process so python will never see it if done properly
* Object can now create objects of the proper type in case one attempts to ↵Sebastian Thiel2009-10-151-1/+0
| | | | create an object directly - this feature is used in several places now, allowing for additional type-checking
* All times are not stored as time_struct, but as simple int to consume less ↵Sebastian Thiel2009-10-151-0/+19
| | | | | | memory time imports cleaned up and mostly removed as they were not required (anymore)
* unified name of utils module, recently it was named util and utils in ↵Sebastian Thiel2009-10-131-0/+36
different packages