aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2009-10-20Improved tuple access of EntryIndex class including test, stage and type ↵Sebastian Thiel
access still needs to be decoded though
2009-10-20Added initial version of the index reading from file - IndexEntry interface ↵Sebastian Thiel
is to be improved though, writing needs to be implemented as well
2009-10-20Added frame for index implementation and testingSebastian Thiel
2009-10-20repo.alternates test cheked for correctness and bugfixed - totally mocked ↵Sebastian Thiel
tests bare the risk that things do not work properly outside of the sandbox.
2009-10-20Fixed bare repository handling - bare is now a property to prevent writing itSebastian Thiel
2009-10-20Moved specialized methods like dashify, touch and is_git_dir to module to ↵Sebastian Thiel
the respective modules that use them fixed repo.daemon_export which did not work anymore due to incorrect touch implementation and wrong property names
2009-10-20Improved is_dirty including testSebastian Thiel
2009-10-19Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel
simple tests
2009-10-19commit.count: is an instance method nowSebastian Thiel
repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
2009-10-19repo.remote method addedSebastian Thiel
CHANGES updated to carry information about remotes and config
2009-10-19remote: added tests for creation and removal, finishing the remote interfaceSebastian Thiel
2009-10-19remote: base tests succeed nowSebastian Thiel
2009-10-19config: fixed serious issues that would cause it to see initial tabs as ↵Sebastian Thiel
continuation lines - this leads to very incorrect results when parsing git config files. Now the complete reading is overridden to make it work as there was no other way
2009-10-19Added configuration access including tests to remoteSebastian Thiel
config: fixed issue that would cause it to abort reading if the file did not exist - this is valid now Test does not work as the configuration parsing does not work as expected - this must be fixed first
2009-10-19Added remote module and test cases - about to implement remote option handlingSebastian Thiel
2009-10-19added initial frame for remote handling- remotes are somewhat related to ↵Sebastian Thiel
either parsing the command output or to reading the repo configuration which would be faster
2009-10-19added additional testing for the configuration, concurrent access and config ↵Sebastian Thiel
reading, all tests work
2009-10-19implemented config class as far as necessary, one check is still failingSebastian Thiel
Added odict module to get an OrderedDict to be used in the config parser, assuring the order of sections and options does not change
2009-10-18Added frame for configuration reader involving a meta class, decorators and ↵Sebastian Thiel
tests - most of which still has to be filled out
2009-10-18diff method now checks for git-diff errrs that can easily occour if the ↵Sebastian Thiel
repository is bare and if there is no index or second tree specified
2009-10-18DiffIndex implemented including testSebastian Thiel
2009-10-18diff: implemented raw diff parsing which appears to be able to handle ↵Sebastian Thiel
possible input types, DiffIndex still requires implementation though
2009-10-18implemented diff tests, but will have to move the diff module as it needs to ↵Sebastian Thiel
create objects, whose import would create a dependency cycle
2009-10-17Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel
is missing - these tests have to be redone in test-diff module accordingly
2009-10-16Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel
this was assumed - now there is a test for it as well repo: removed diff and commit_diff methods, added 'head' property returning the current head as Reference object
2009-10-16repo.untracked_files added including testSebastian Thiel
2009-10-15Improved archive function by allowing it to directly write to an output ↵Sebastian Thiel
stream - previously it would cache everything to memory and try to provide zipping functionality itself gitcmd: allows the output stream to be set explicitly which is mainly useful for archiving operations
2009-10-15repo: made init and clone methods less specific, previously they wanted to ↵Sebastian Thiel
do it 'barely' only. New method names closely follow the default git command names
2009-10-15Object can now create objects of the proper type in case one attempts to ↵Sebastian Thiel
create an object directly - this feature is used in several places now, allowing for additional type-checking
2009-10-15Added Commit.iter_parents to iterate all parentsSebastian Thiel
Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref )
2009-10-15repo: removed a few methods because of redundancy or because it will be ↵Sebastian Thiel
obsolete once the interface overhaul is finished. This commit is just intermediate
2009-10-15All times are not stored as time_struct, but as simple int to consume less ↵Sebastian Thiel
memory time imports cleaned up and mostly removed as they were not required (anymore)
2009-10-15test_performance: module containing benchmarks to get an idea of the ↵Sebastian Thiel
achieved throughput repo.commits: max_count is None by default moved benchmark-like test from test_commit to test_performance
2009-10-14Removed plenty of mocked tree tests as they cannot work anymore with ↵Sebastian Thiel
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
2009-10-14tree: now reads tress directly by parsing the binary data, allowing it to ↵Sebastian Thiel
safe possibly hundreds of command calls
2009-10-14Refs are now truly dynamic - this costs a little bit of (persistent command) ↵Sebastian Thiel
work, but assures refs behave as expected
2009-10-14persistent command signature changed to also return the hexsha from a ↵Sebastian Thiel
possible input ref - the objects pointed to by refs are now baked on demand - perhaps it should change to always be re-retrieved using a property as it is relatively fast - this way refs can always be cached
2009-10-14test_blob: removed many redundant tests that would fail now as the mock ↵Sebastian Thiel
cannot handle the complexity of the command backend All objects but Tree now use the persistent command to read their object information - Trees get binary data and would need their own pretty-printing or they need to parse the data themselves which is my favorite
2009-10-14Implemented git command facility to keep persistent commands for fast object ↵Sebastian Thiel
information retrieval
2009-10-14test: Added time-consuming test which could also be a benchmark in fact - ↵Sebastian Thiel
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
2009-10-14cmd: added option to return the process directly, allowing to read the ↵Sebastian Thiel
output directly from the output stream commit: now reads commit information directly from the output stream of the process by implementing its iterator method repo: removed log method as it was redundant ( equal to the commits method )
2009-10-13renamed find_all to list_all, changed commit to use iterable interface in ↵Sebastian Thiel
preparation for command changes
2009-10-13unified name of utils module, recently it was named util and utils in ↵Sebastian Thiel
different packages
2009-10-13tree: renamed content_from_string to _from_string to make it private. ↵Sebastian Thiel
Removed tests that were testing that method
2009-10-12tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel
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
2009-10-12test_base: Improved basic object creation as well as set hash testsSebastian Thiel
2009-10-12repo.active_branch now returns a Head object, not a stringSebastian Thiel
2009-10-12renamed from_string and list_from_string to _from_string and ↵Sebastian Thiel
_list_from_string to indicate their new status as private method, adjusted all callers respectively
2009-10-12Reorganized package structure and cleaned up importsSebastian Thiel
2009-10-11Added remaining tests for new base classes and removed some methods whose ↵Sebastian Thiel
existance was doubtful or unsafe