summaryrefslogtreecommitdiff
path: root/test/git/test_tree.py
Commit message (Collapse)AuthorAgeFilesLines
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-141/+0
|
* Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel2010-11-151-0/+2
| | | | was mainly copy-paste from with_rw_repo, what a shame
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-7/+3
|
* Initial frame for implementing read_tree using pure python. As git-read-tree ↵Sebastian Thiel2010-06-221-0/+5
| | | | | | | can do much more than we can ( and faster assumably ), the .new method is used to create new index instances from up to 3 trees. Implemented multi-tree traversal to facilitate building a stage list more efficiently ( although I am not sure whether it could be faster to use a dictionary together with some intensive lookup ), including test Added performance to learn how fast certain operations are, and whether one should be preferred over another
* tree: added TreeModifier, allowing to adjust existing trees safely and or ↵Sebastian Thiel2010-06-141-5/+58
| | | | fast, while staying compatible with serialization which requires it to be sorted
* Implemented initial version of tree serialization which appears to work ↵Sebastian Thiel2010-06-141-55/+74
| | | | | | | according to a simple test ( presort still needs implementation ) submodule: added stub to allow the tree to return something, its not implemented though
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-53/+53
|
* tree: implemented recursive paths in __div__ and __getitem__ method, ↵Sebastian Thiel2009-12-301-1/+4
| | | | allowing the keys to contain slashes; adjusted test to check for this
* ItemTraversal: Predicate and prune functions now provide depth information, ↵Sebastian Thiel2009-11-271-3/+3
| | | | allowing the callee to know more about its environment
* 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\!
* 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-0/+14
| | | | | | 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
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-1/+1
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* tree.traverse: Added prune functionality - previously the predciate did ↵Sebastian Thiel2009-10-211-0/+5
| | | | both, pruning and preventing to return items
* Removed plenty of mocked tree tests as they cannot work anymore with ↵Sebastian Thiel2009-10-141-100/+0
| | | | | | persistent commands that require stdin AND binary data - not even an adapter would help here. These tests will have to be replaced. test_commit: Improved efficiency of traversal test
* tree: renamed content_from_string to _from_string to make it private. ↵Sebastian Thiel2009-10-131-27/+2
| | | | Removed tests that were testing that method
* tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel2009-10-121-24/+44
| | | | | | 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-4/+4
| | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively
* Fixed remaining tests to deal with the changesSebastian Thiel2009-10-111-2/+2
| | | | mode is now generally an int compatible to the stat module
* lazymixin system now supports per-attribute baking, it is up to the class ↵Sebastian Thiel2009-10-111-1/+1
| | | | whether it bakes more. This also leads to more efficient use of memory as values are only cached and set when required - the baking system does not require an own tracking variable anymore, and values are only to be cached once - then python will natively find the cache without involving any additional overhead. This works by using __getattr__ instead of __get_attribute__ which would always be called
* converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel2009-10-111-117/+117
| | | | editor to work with the files properly. Can convert it back for releaes
* Blob|Tree: renamed 'name' member to 'path', updated tests and changelog as ↵Sebastian Thiel2009-10-091-2/+2
| | | | it would make existing code incompatible in some places
* Fix unittests for Mock 0.5.0Paul J. Davis2009-09-141-4/+4
|
* Lots of spring cleaning and added in Sphinx documentation.Michael Trier2009-01-241-1/+1
|
* Get compatible with mock0.4 (to some extend ;)). Just that MichaelFlorian Apolloner2008-12-151-12/+12
| | | | | doesn't need to do the same boring replacing I did. (cherry picked from commit 10c62aa69193a8bc7b46ca24c2ad1d5008489665)
* Replace GitPython with git in repr() outputs.Steve Frécinaux2008-09-171-1/+1
| | | | | The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something.
* Make Tree.content_from_string a static method.Steve Frécinaux2008-09-061-7/+6
| | | | It doesn't use an object's private contents, so let's go...
* Implement dict protocol for trees.Steve Frécinaux2008-09-061-3/+52
| | | | | It is rather intuitive to consider trees as a dict of objects (like a directory could be seen as a dict of files).
* Use a dictionnary for tree contentsSteve Frécinaux2008-09-051-1/+1
| | | | | | | It seems more natural to use a dictionnary for directories, since we usually want to access them by name, and entry order is not relevant. Also, finding a particular blob given its name is O(1) instead of O(N).
* Removed method_missing since it was only used in one place.Michael Trier2008-07-171-4/+4
|
* Added license information to all files.Michael Trier2008-07-161-0/+6
|
* renamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed ↵Michael Trier2008-05-301-1/+1
| | | | up tests so they pass except for stderr test. Modified version information retrieval.
* lots of little fixes. Corrected problem with creating bare repo. Added ↵Michael Trier2008-05-181-1/+15
| | | | Repo.create alias.
* Moved test stuff around and modified imports to just clean things up a bit.Michael Trier2008-05-071-3/+1
|
* cleaned up a bunch of imports for the tests.Michael Trier2008-05-071-3/+3
|
* initial projectMichael Trier2008-05-071-0/+83