summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
Commit message (Collapse)AuthorAgeFilesLines
* 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