aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2009-10-23commit.name_rev property added for convenienceSebastian Thiel
2009-10-23SymbolicReferences can now change they references safely as I think and well ↵Sebastian Thiel
controlled, including test. Added commit method which will return the commit for detached symbolic refs or for normal symbolic refs which is quite convenient
2009-10-22Adjusted tests to deal with API changesSebastian Thiel
2009-10-22Added SymbolicReference and HEAD type to better represent these special ↵Sebastian Thiel
types of references and allow special handling Head.reset now is an instance method of HEAD type Concatenated all reference specific tests into test_refs started to fix tests breaking now because of changed interface
2009-10-22Index: Is now diffable and appears to properly implement diffing against ↵Sebastian Thiel
other items as well as the working tree Diff.Diffable: added callback allowing superclasses to preprocess diff arguments Diff.Diff: added eq, ne and hash methods, string methods would be nice
2009-10-22default index writing now writes the index of the current repository in a ↵Sebastian Thiel
fashion comparable to the native implementation
2009-10-22Added test for ConcurrentWriteOperationSebastian Thiel
2009-10-22utils: Added LockFile including testSebastian Thiel
GitConfigFile is now derived from LockFile using its capabilities Implemented ConcurrentWriteOperation, test is yet to be done
2009-10-22Index now behaves more like the default index if no explicit stream is ↵Sebastian Thiel
given. It will lazily read its data on first access
2009-10-22Added reset method to Head - its a class method due to the very general ↵Sebastian Thiel
nature of the command. Yet I don't really like the way you have to call it as repo has to be ṕassed as first arg
2009-10-22Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel
appropriate
2009-10-22Fixed decorator issue that would cause a function to be passed even though ↵Sebastian Thiel
there is a default argument. This feels inconsistent as the 'argument passer' wrapper function can be called with a function or a string as first argument depending on whether the client code was explicitly passing an argument or not. That ... sucks. Now test for that case specifically and fail with a proper assertion error. I don't like it, but what can I do ... . Remote tests adjusted to use rw repositories instead. More tests to follow, and many api methods are to be implemented now these things can be tested properly.
2009-10-22Implemented decorators, tests pass at leastSebastian Thiel
2009-10-22Added frame for new Repo handling and some neat decorators, including tests ↵Sebastian Thiel
that test whether the testing framework does what it should
2009-10-22Merge branch 'index' into improvementsSebastian Thiel
* index: Removed index test marker for custom commits as this boils down to a good way to add files to the index/remove them and make commits which are possibly customized with custom parents index writing now creates a sha on the content making it possible to write valid indices after manually removing or altering entriesgst Implemented merge/resolve handling , but realized that index writing is not yet working properly as it is sha1 checked as well. This explains what my 20 byte 'extension_data' actually is ;) index: Added write_tree method including test index.iter_blobs method added including tests ( which have been improved generally for more coverage ) tree.traverse: Added prune functionality - previously the predciate did both, pruning and preventing to return items Improved testing of index against trees, tests succeed with next commit Initial version of merge including tests for one-way, two-way and tree-way merge index writing added including simple test, improved docs of IndexEntry improved IndexEntry type and added test for parsing of the stage Improved tuple access of EntryIndex class including test, stage and type access still needs to be decoded though Added initial version of the index reading from file - IndexEntry interface is to be improved though, writing needs to be implemented as well Added frame for index implementation and testing
2009-10-22Removed index test marker for custom commits as this boils down to a good ↵Sebastian Thiel
way to add files to the index/remove them and make commits which are possibly customized with custom parents
2009-10-22Stream_data streams data to a given output stream most efficiently with a ↵Sebastian Thiel
low memory footprint. Still, the git-cat-file command keeps all data in an interal buffer instead of streaming it directly. This is a git design issue though, and will be hard to address without some proper git-hacking. Conflicts: lib/git/cmd.py
2009-10-22Git.cmd: removed with_raw_output optionSebastian Thiel
repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason
2009-10-22added Object.data_stream property allowing to stream object data ↵Sebastian Thiel
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
2009-10-22index writing now creates a sha on the content making it possible to write ↵Sebastian Thiel
valid indices after manually removing or altering entriesgst
2009-10-22Implemented merge/resolve handling , but realized that index writing is not ↵Sebastian Thiel
yet working properly as it is sha1 checked as well. This explains what my 20 byte 'extension_data' actually is ;)
2009-10-21index: Added write_tree method including testSebastian Thiel
2009-10-21remote: Added fetch, pull, push methods to the interface to make these ↵Sebastian Thiel
operations more convenient, like repo.remotes.origin.fetch
2009-10-21index.iter_blobs method added including tests ( which have been improved ↵Sebastian Thiel
generally for more coverage )
2009-10-21tree.traverse: Added prune functionality - previously the predciate did ↵Sebastian Thiel
both, pruning and preventing to return items
2009-10-21Improved testing of index against trees, tests succeed with next commitSebastian Thiel
2009-10-21Initial version of merge including tests for one-way, two-way and tree-way mergeSebastian Thiel
2009-10-21diff: added test to be sure index-vs-working copy diffs are solved properlySebastian Thiel
2009-10-21index writing added including simple test, improved docs of IndexEntrySebastian Thiel
2009-10-20improved IndexEntry type and added test for parsing of the stageSebastian Thiel
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