summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
Commit message (Collapse)AuthorAgeFilesLines
* moved all contents, incl. submodule gitdb, up to the root directorySebastian Thiel2010-11-211-280/+0
|
* Fixed all imports, refactoring appears to be completeSebastian Thiel2010-11-181-1/+1
|
* win32 compatability adjustmentsunknown2010-07-021-6/+5
|
* Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel2010-06-291-3/+3
| | | | the submodules's naming conventions
* Updated and fixed sphinx API docs, which included one quick skim-throughSebastian Thiel2010-06-291-6/+8
|
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-3/+6
|
* Adjusted all files to (hopefully) deal with the fact that all objects now ↵Sebastian Thiel2010-06-251-52/+23
| | | | | | | 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
* index.write_tree: initial version implemented, although its not yet working ↵Sebastian Thiel2010-06-221-93/+28
| | | | | | | correctly, a test to explicitly compare the git version with the python implementation is still missing Tree and Index internally use 20 byte shas, converting them only as needed to reduce memory footprint and processing time objects: started own 'fun' module containing the most important tree functions, more are likely to be added soon
* index: Entries are now using flags internally, instead of reducing the flag ↵Sebastian Thiel2010-06-211-1/+1
| | | | information to just the stage ( just to be closer to the git-original )
* tree: added TreeModifier, allowing to adjust existing trees safely and or ↵Sebastian Thiel2010-06-141-9/+91
| | | | fast, while staying compatible with serialization which requires it to be sorted
* tree now uses less memory for its cache as it stores the bare deserialized ↵Sebastian Thiel2010-06-141-55/+63
| | | | information - this also speeds up later serialization after changes. its clear though that retrieving actual objects is slower currently as these are not cached anymore. Its worth thinking about moving these encoding, decoding routines to gitdb
* Implemented initial version of tree serialization which appears to work ↵Sebastian Thiel2010-06-141-235/+266
| | | | | | | according to a simple test ( presort still needs implementation ) submodule: added stub to allow the tree to return something, its not implemented though
* commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel2010-06-021-1/+1
| | | | | | | 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
* TODO: Removed all entries but left a mesage about where to find the issuee ↵Sebastian Thiel2010-05-041-1/+1
| | | | | | | on lighthouse. README/intro.rst: added information about the new repository at github tree: added marker to indicate that submodules would have to be returned there
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-227/+227
|
* git.Tree: Fixed critical issue when reading trees from binary data. The ↵Sebastian Thiel2010-02-241-8/+6
| | | | previous version was making assumptions that would only be true for old git repositories it sesms. The new version of the algorithm deals with this gracefully.
* tree: implemented recursive paths in __div__ and __getitem__ method, ↵Sebastian Thiel2009-12-301-6/+27
| | | | allowing the keys to contain slashes; adjusted test to check for this
* Fixed issue with commit traversal due to missing visit_once in the traversal ↵Sebastian Thiel2009-11-271-0/+8
| | | | method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive
* tree: added traversal method, adjusted testsSebastian Thiel2009-11-261-40/+10
| | | | 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/+1
| | | | including a test
* Added utilities helping to create proper paths either with slashes or ↵Sebastian Thiel2009-11-051-1/+2
| | | | | | | backslashes depending on the operating system fixed test_refs and test_trees Many more issues remain though, this is just a first backup commit
* Improved cmd error handling in case an invalid revision is specified for an ↵Sebastian Thiel2009-11-041-1/+1
| | | | | | object repo.tree: improved to be less restricting
* IndexObject: assured that .path fields are relative to the repository ( ↵Sebastian Thiel2009-11-041-5/+5
| | | | | | previously it would just be a name ) added abspath property and name property to provide easy access to most common paths of an index object
* tree: parsing would fail when symlinks where encountered. This has been fixedSebastian Thiel2009-11-041-1/+2
|
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-3/+3
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* When parsing trees, we now store the originan type bits as well, previously ↵Sebastian Thiel2009-10-261-8/+9
| | | | we dropped it
* tree.traverse: Added prune functionality - previously the predciate did ↵Sebastian Thiel2009-10-211-8/+12
| | | | both, pruning and preventing to return items
* resolved cyclic inclusion issue by moving the Diffable interface into the ↵Sebastian Thiel2009-10-181-1/+2
| | | | diff module, which probably is the right thing to do anyway
* added Diffable interface to objects.base, its used by Commit and Tree objects.Sebastian Thiel2009-10-161-1/+2
| | | | Diff class has been prepared to process raw input, but its not yet more than a frame
* tree: now reads tress directly by parsing the binary data, allowing it to ↵Sebastian Thiel2009-10-141-32/+70
| | | | safe possibly hundreds of command calls
* test: Added time-consuming test which could also be a benchmark in fact - ↵Sebastian Thiel2009-10-141-1/+1
| | | | | | | currently it cause hundreds of command invocations which is slow Fixed issue with trees not properly initialized with their default mode _set_cache_: some objects checked whether the attribute was within their __slots__ although it should have been accessed through its class
* tree: renamed content_from_string to _from_string to make it private. ↵Sebastian Thiel2009-10-131-2/+2
| | | | Removed tests that were testing that method
* tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel2009-10-121-34/+136
| | | | | | dict as cache is a problem as the tree is ordered, added blobs, trees and traverse method repo: remove blob function as blobs are created directly or iterated - primitve types should not clutter the repo interface
* renamed from_string and list_from_string to _from_string and ↵Sebastian Thiel2009-10-121-2/+2
| | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively
* Reorganized package structure and cleaned up importsSebastian Thiel2009-10-121-0/+102