aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-10-28Added repo.refs for completeness (as remote.refs is there as well and quite ↵Sebastian Thiel
nice to use)
2009-10-28Tried to use shallow repository - this works in case it is remote, but ↵Sebastian Thiel
unfortunately, deepening the repository fails if the server is used. This is bad, but a workaround is to create another shared repo which pushes a changes that we fetch into our given repo. This should provide more output to properly test the fetch handling. Harder than I thought
2009-10-28Fixed bug when listing remotes - it was based on references which is ↵Sebastian Thiel
incorrect as it cannot always work
2009-10-28FetchInfo class is not a subclass of Remote class anymore, as more classes ↵Sebastian Thiel
are to be added it cluttered up the view and made things more complex as well
2009-10-28IterableList: added support for prefix allowing remote.refs.master ↵Sebastian Thiel
constructs, previously it was remote.refs['%s/master'%remote] Added first simple test for push support, which shows that much more work is needed on that side to allow just-in-time progress information
2009-10-28tag handling tests finished, unfortunately there is not yet a rejected case, ↵Sebastian Thiel
but it will assuambly follow with the push tests
2009-10-27Implemented handling of FETCH_HEAD and tags, some test cases still missing ↵Sebastian Thiel
dealing with deletion and movements of remote tags ( which in fact is discouraged, but we should be able to deal with it, shouldnt we ;)
2009-10-27Added special cases to test that shows we cannot yet:Sebastian Thiel
handle the FETCH_HEAD case and handle tags System needs to be adjusted to take the FETCH_HEAD info into account to cover the tags case
2009-10-27Added remote stale_refs property including test, tested new remote branch ↵Sebastian Thiel
handling and deletion of stale remote branches
2009-10-27renamed remote_branch to remote_head, improved errror messageSebastian Thiel
2009-10-27Added non-fast forward test case, fixed parsing issue caused by initial line ↵Sebastian Thiel
stripping
2009-10-27implemented test for rejection handling and fixed a bug when parsing remote ↵Sebastian Thiel
reference paths
2009-10-27Added testing frame for proper fetch testing to be very sure this works as ↵Sebastian Thiel
expected. Plenty of cases still to be tested
2009-10-27Reference._from_string will now create the appropriate type, not just the ↵Sebastian Thiel
type of the actual class. This could result in a symbolic reference returned even though you technically requested a reference - this issue must still be addressed.
2009-10-27put _make_file helper method into TestBase classSebastian Thiel
remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
2009-10-26Merge branch 'index' into improvementsSebastian Thiel
* 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 )
2009-10-26index.add: Finished implemenation including through testsSebastian Thiel
index.checkout: added simple method allowing to checkout files from the index, including simple test
2009-10-26When parsing trees, we now store the originan type bits as well, previously ↵Sebastian Thiel
we dropped it
2009-10-26cmd.wait: AutoKill wrapped process will automatically raise on errors to ↵Sebastian Thiel
unify error handling amongst clients using the process directly. It might be needed to add a flag allowing to easily override that
2009-10-26added head kwarg to reset and commit method, allowing to automatically ↵Sebastian Thiel
change the head to the given commit, which makes the methods more versatile
2009-10-26refs.SymoblicRef: implemented direcft setting of the symbolic references ↵Sebastian Thiel
commit, which possibly dereferences to the respective head
2009-10-26Merge branch 'refs' into indexSebastian Thiel
* 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
2009-10-24index.commit: implemented initial version, but in fact some more changes are ↵Sebastian Thiel
required to have a nice API. Tests are not yet fully done either
2009-10-24actor: added __eq__, __ne__ and __hash__ methods including simple testSebastian Thiel
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
2009-10-23index.remove implemented including throrough testSebastian Thiel
2009-10-23Implemented index.reset method including testSebastian Thiel
2009-10-23IndexEntry is now based on a 'minimal' version that is suitable to be fed ↵Sebastian Thiel
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
2009-10-23Added notes about git-update-refSebastian Thiel
2009-10-23commit.name_rev property added for convenienceSebastian Thiel
2009-10-23Refs can now set the reference they are pointing to in a controlled fashion ↵Sebastian Thiel
by writing their ref file directly
2009-10-23Added TagRefernce creation and deletion including testsSebastian Thiel
Added RemoteReference deletion and test
2009-10-23Implemented head methods: create, delete, rename, including testsSebastian Thiel
2009-10-23refs: added create, delete and rename methods where appropriate. Tests are ↵Sebastian Thiel
marked, implementation is needed for most of them
2009-10-23Added frame for IndexFile add/remove/commit methods and respective test markersSebastian Thiel
2009-10-23Added repo.index property including simple test, and additional ideas in the ↵Sebastian Thiel
TODO list
2009-10-23Renamed Index to IndexFile, adjusted tests, it will only operate on physical ↵Sebastian Thiel
files, not on streams, as Indices are not streamed by any git command ( at least not in raw format )
2009-10-23Merge branch 'symbolic_ref' into improvementsSebastian Thiel
* 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
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-22Merge branch 'index' into improvementsSebastian Thiel
* 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
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-22Merge branch 'testsystem' into improvementsSebastian Thiel
* 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
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.