summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * put _make_file helper method into TestBase classSebastian Thiel2009-10-275-23/+66
| |/ | | | | | | remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
| * Merge branch 'index' into improvementsSebastian Thiel2009-10-2615-228/+1215
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * index: index.add: Finished implemenation including through tests When parsing trees, we now store the originan type bits as well, previously we dropped it cmd.wait: AutoKill wrapped process will automatically raise on errors to unify error handling amongst clients using the process directly. It might be needed to add a flag allowing to easily override that added head kwarg to reset and commit method, allowing to automatically change the head to the given commit, which makes the methods more versatile refs.SymoblicRef: implemented direcft setting of the symbolic references commit, which possibly dereferences to the respective head index.commit: implemented initial version, but in fact some more changes are required to have a nice API. Tests are not yet fully done either actor: added __eq__, __ne__ and __hash__ methods including simple test index.remove implemented including throrough test Implemented index.reset method including test IndexEntry is now based on a 'minimal' version that is suitable to be fed into UpdateIndex. The Inode and device information is only needed to quickly compare the index against the working tree for changes, hence it should not be that dominant in the API either. More changes to come Added notes about git-update-ref Refs can now set the reference they are pointing to in a controlled fashion by writing their ref file directly Added TagRefernce creation and deletion including tests Implemented head methods: create, delete, rename, including tests refs: added create, delete and rename methods where appropriate. Tests are marked, implementation is needed for most of them Added frame for IndexFile add/remove/commit methods and respective test markers Added repo.index property including simple test, and additional ideas in the TODO list Renamed Index to IndexFile, adjusted tests, it will only operate on physical files, not on streams, as Indices are not streamed by any git command ( at least not in raw format )
| | * index.add: Finished implemenation including through testsSebastian Thiel2009-10-263-5/+224
| | | | | | | | | | | | index.checkout: added simple method allowing to checkout files from the index, including simple test
| | * When parsing trees, we now store the originan type bits as well, previously ↵Sebastian Thiel2009-10-261-8/+9
| | | | | | | | | | | | we dropped it
| | * cmd.wait: AutoKill wrapped process will automatically raise on errors to ↵Sebastian Thiel2009-10-262-7/+22
| | | | | | | | | | | | unify error handling amongst clients using the process directly. It might be needed to add a flag allowing to easily override that
| | * added head kwarg to reset and commit method, allowing to automatically ↵Sebastian Thiel2009-10-262-18/+60
| | | | | | | | | | | | change the head to the given commit, which makes the methods more versatile
| | * refs.SymoblicRef: implemented direcft setting of the symbolic references ↵Sebastian Thiel2009-10-262-3/+32
| | | | | | | | | | | | commit, which possibly dereferences to the respective head
| | * Merge branch 'refs' into indexSebastian Thiel2009-10-263-23/+282
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs: Added notes about git-update-ref Refs can now set the reference they are pointing to in a controlled fashion by writing their ref file directly Added TagRefernce creation and deletion including tests Implemented head methods: create, delete, rename, including tests refs: added create, delete and rename methods where appropriate. Tests are marked, implementation is needed for most of them
| | | * Added notes about git-update-refSebastian Thiel2009-10-231-1/+6
| | | |
| | | * Refs can now set the reference they are pointing to in a controlled fashion ↵Sebastian Thiel2009-10-233-16/+60
| | | | | | | | | | | | | | | | by writing their ref file directly
| | | * Added TagRefernce creation and deletion including testsSebastian Thiel2009-10-232-7/+57
| | | | | | | | | | | | | | | | Added RemoteReference deletion and test
| | | * Implemented head methods: create, delete, rename, including testsSebastian Thiel2009-10-233-17/+56
| | | |
| | | * refs: added create, delete and rename methods where appropriate. Tests are ↵Sebastian Thiel2009-10-232-2/+123
| | | | | | | | | | | | | | | | marked, implementation is needed for most of them
| | * | index.commit: implemented initial version, but in fact some more changes are ↵Sebastian Thiel2009-10-243-9/+58
| | | | | | | | | | | | | | | | required to have a nice API. Tests are not yet fully done either
| | * | actor: added __eq__, __ne__ and __hash__ methods including simple testSebastian Thiel2009-10-244-16/+54
| | | | | | | | | | | | | | | | commit: Fixed long-standing issue during message parsing that would fail to parse properly in case we were created from data. Also it would strip white space from the messages although it shouldn't
| | * | index.remove implemented including throrough testSebastian Thiel2009-10-234-23/+203
| | | |
| | * | Implemented index.reset method including testSebastian Thiel2009-10-232-5/+43
| | | |
| | * | IndexEntry is now based on a 'minimal' version that is suitable to be fed ↵Sebastian Thiel2009-10-231-52/+69
| | |/ | | | | | | | | | into UpdateIndex. The Inode and device information is only needed to quickly compare the index against the working tree for changes, hence it should not be that dominant in the API either. More changes to come
| | * Added frame for IndexFile add/remove/commit methods and respective test markersSebastian Thiel2009-10-234-5/+132
| | |
| | * Added repo.index property including simple test, and additional ideas in the ↵Sebastian Thiel2009-10-234-10/+39
| | | | | | | | | | | | TODO list
| | * Renamed Index to IndexFile, adjusted tests, it will only operate on physical ↵Sebastian Thiel2009-10-232-118/+62
| | | | | | | | | | | | files, not on streams, as Indices are not streamed by any git command ( at least not in raw format )
| * | commit.name_rev property added for convenienceSebastian Thiel2009-10-233-0/+14
| |/
| * Merge branch 'symbolic_ref' into improvementsSebastian Thiel2009-10-2311-166/+329
| |\ | | | | | | | | | | | | | | | | | | * symbolic_ref: SymbolicReferences can now change they references safely as I think and well controlled, including test. Adjusted tests to deal with API changes Added SymbolicReference and HEAD type to better represent these special types of references and allow special handling
| | * SymbolicReferences can now change they references safely as I think and well ↵Sebastian Thiel2009-10-233-8/+91
| | | | | | | | | | | | | | | | | | controlled, including test. Added commit method which will return the commit for detached symbolic refs or for normal symbolic refs which is quite convenient
| | * Adjusted tests to deal with API changesSebastian Thiel2009-10-225-20/+15
| | |
| | * Added SymbolicReference and HEAD type to better represent these special ↵Sebastian Thiel2009-10-229-154/+239
| |/ | | | | | | | | | | | | | | 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
| * Merge branch 'index' into improvementsSebastian Thiel2009-10-2210-99/+457
| |\ | | | | | | | | | | | | | | | | | | | | | | | | * index: Index: Is now diffable and appears to properly implement diffing against other items as well as the working tree default index writing now writes the index of the current repository in a fashion comparable to the native implementation Added test for ConcurrentWriteOperation utils: Added LockFile including test Index now behaves more like the default index if no explicit stream is given. It will lazily read its data on first access
| | * Index: Is now diffable and appears to properly implement diffing against ↵Sebastian Thiel2009-10-227-21/+152
| | | | | | | | | | | | | | | | | | | | | 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
| | * default index writing now writes the index of the current repository in a ↵Sebastian Thiel2009-10-223-9/+32
| | | | | | | | | | | | fashion comparable to the native implementation
| | * Added test for ConcurrentWriteOperationSebastian Thiel2009-10-222-2/+54
| | |
| | * utils: Added LockFile including testSebastian Thiel2009-10-223-69/+205
| | | | | | | | | | | | | | | GitConfigFile is now derived from LockFile using its capabilities Implemented ConcurrentWriteOperation, test is yet to be done
| | * Index now behaves more like the default index if no explicit stream is ↵Sebastian Thiel2009-10-222-9/+25
| |/ | | | | | | given. It will lazily read its data on first access
| * Added reset method to Head - its a class method due to the very general ↵Sebastian Thiel2009-10-224-14/+67
| | | | | | | | 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
| * Merge branch 'testsystem' into improvementsSebastian Thiel2009-10-2216-135/+246
| |\ | | | | | | | | | | | | | | | | | | | | | * testsystem: Adjusted all remaining test suites to use the new TestBase class where appropriate Fixed decorator issue that would cause a function to be passed even though 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 ... . Implemented decorators, tests pass at least Added frame for new Repo handling and some neat decorators, including tests that test whether the testing framework does what it should
| | * Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel2009-10-2211-112/+88
| | | | | | | | | | | | appropriate
| | * Fixed decorator issue that would cause a function to be passed even though ↵Sebastian Thiel2009-10-223-18/+22
| | | | | | | | | | | | | | | | | | 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.
| | * Implemented decorators, tests pass at leastSebastian Thiel2009-10-222-27/+45
| | |
| | * Added frame for new Repo handling and some neat decorators, including tests ↵Sebastian Thiel2009-10-224-9/+122
| |/ | | | | | | that test whether the testing framework does what it should
| * Updated CHANGES file to indicate addition of index classSebastian Thiel2009-10-221-0/+5
| |
| * git cmd fix: After removing the with_raw_output flag, I actually did the ↵Sebastian Thiel2009-10-221-2/+2
| | | | | | | | wrong thing by _not_ stripping the final newline at the end of all git commands we use. This is the default now which cannot be changed - perhaps its wrong to remove it, but in way you'd always want the final newline stripped unless you get data directly, but there are better ways to do that ( blob.data, blob.data_stream, blob.stream_data )
| * Merge branch 'index' into improvementsSebastian Thiel2009-10-2210-22/+703
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * Removed index test marker for custom commits as this boils down to a good ↵Sebastian Thiel2009-10-221-4/+2
| | | | | | | | | | | | 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 ↵Sebastian Thiel2009-10-223-4/+79
| | | | | | | | | | | | valid indices after manually removing or altering entriesgst
| | * Implemented merge/resolve handling , but realized that index writing is not ↵Sebastian Thiel2009-10-222-9/+84
| | | | | | | | | | | | 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 testSebastian Thiel2009-10-213-18/+55
| | |
| | * index.iter_blobs method added including tests ( which have been improved ↵Sebastian Thiel2009-10-212-12/+71
| | | | | | | | | | | | generally for more coverage )
| | * tree.traverse: Added prune functionality - previously the predciate did ↵Sebastian Thiel2009-10-213-9/+22
| | | | | | | | | | | | both, pruning and preventing to return items
| | * Improved testing of index against trees, tests succeed with next commitSebastian Thiel2009-10-213-5/+20
| | |
| | * Initial version of merge including tests for one-way, two-way and tree-way mergeSebastian Thiel2009-10-213-5/+101
| | |
| | * index writing added including simple test, improved docs of IndexEntrySebastian Thiel2009-10-212-27/+135
| | |