summaryrefslogtreecommitdiff
path: root/test/git
Commit message (Collapse)AuthorAgeFilesLines
...
* Index tests adopted to windows - especially the symlink test needed ↵Sebastian Thiel2009-11-061-2/+10
| | | | adjustment, but it works as expected even on systems that do not support symlinks
* ARGH: wb and rb is not the same as r and w on windows, hence reading of ↵Sebastian Thiel2009-11-052-5/+5
| | | | binary files went crazy as well as binary writing
* test_commit: commit.count actually returned incorrect values on linux, ↵Sebastian Thiel2009-11-051-1/+1
| | | | namely 141 instead of 143. Manual checking showed that 143 is the correct number, on linux this will have to be fixed
* removed large-input test as it is totally dependent on the subprocess ↵Sebastian Thiel2009-11-051-7/+0
| | | | implementation in the end whether pipeing large input works. In general , input and output pipes are used, the shell is bypassed, hence there is no reason for a problem unless we are on a very rare platform. And if so, we can't do anything about it so why should there be a possibly failing test ? Problem is that the test would fail on windows in case it is not installed on c:\windows
* fixed test_repo to work on windowsSebastian Thiel2009-11-051-6/+6
| | | | cmd: taskkill now pipes stderror to nul as well
* helpers: fixed and improved test repo decorators to use the new ↵Sebastian Thiel2009-11-042-6/+2
| | | | | | head.checkout functions for greater ease of use - they work exactly as expected now. Fixed failing test in remote tests by actually removing the line
* head.checkout method added including testSebastian Thiel2009-11-041-1/+22
|
* added query for 'M' modified diffs to DiffIndex including test. The latter ↵Sebastian Thiel2009-11-041-1/+1
| | | | one was made faster by reducing the amount of permutations to the minimal value
* Improved cmd error handling in case an invalid revision is specified for an ↵Sebastian Thiel2009-11-042-1/+9
| | | | | | 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
* refs: iter_items now imlemented natively for additional performance. We did ↵Sebastian Thiel2009-11-032-10/+5
| | | | not implement the crazy sorting feature found in git-for-each-ref though
* Now using git-update-ref and git-symbolic-ref to update references with ↵Sebastian Thiel2009-11-031-4/+2
| | | | reflog support. This should be manually implemented though for more performance, what it does is relatively easy
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-036-20/+20
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* repo: added create_* and delete_* methods for refs ( head, tag, remote ) as ↵Sebastian Thiel2009-11-031-0/+12
| | | | a convenient shortcut to using the classes manually
* repo.is_dirty: is a method now - the property based interface didn't allow ↵Sebastian Thiel2009-11-031-3/+3
| | | | all parameters to be used. The test would not test everything either, and I would consider this a bug that slipped through
* Finished all push tests I could think of so far. More error cases should be ↵Sebastian Thiel2009-11-031-3/+20
| | | | studied, but they would be hard to 'produce'
* Intermediate commit with a few added and improved tests as well as many fixesSebastian Thiel2009-11-031-7/+61
|
* Implemented PushProgress and PushInfo class including basic test cases. Now ↵Sebastian Thiel2009-11-021-6/+48
| | | | many more test-cases need to be added to be sure we can truly deal with everything git throws at us
* Added frame for push testing and push implemenationSebastian Thiel2009-10-281-7/+28
|
* Another attempt to make fetch emit progress information, but in fact its ↵Sebastian Thiel2009-10-281-13/+51
| | | | proven now that this is not happening if stderr is being redirected. A test is in place that will most likely fail in case this ever changes
* Added repo.refs for completeness (as remote.refs is there as well and quite ↵Sebastian Thiel2009-10-281-0/+6
| | | | nice to use)
* Tried to use shallow repository - this works in case it is remote, but ↵Sebastian Thiel2009-10-281-2/+17
| | | | 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
* Fixed bug when listing remotes - it was based on references which is ↵Sebastian Thiel2009-10-281-3/+3
| | | | incorrect as it cannot always work
* FetchInfo class is not a subclass of Remote class anymore, as more classes ↵Sebastian Thiel2009-10-281-6/+8
| | | | are to be added it cluttered up the view and made things more complex as well
* IterableList: added support for prefix allowing remote.refs.master ↵Sebastian Thiel2009-10-281-3/+21
| | | | | | 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
* tag handling tests finished, unfortunately there is not yet a rejected case, ↵Sebastian Thiel2009-10-281-5/+13
| | | | but it will assuambly follow with the push tests
* Implemented handling of FETCH_HEAD and tags, some test cases still missing ↵Sebastian Thiel2009-10-271-9/+11
| | | | dealing with deletion and movements of remote tags ( which in fact is discouraged, but we should be able to deal with it, shouldnt we ;)
* Added special cases to test that shows we cannot yet:Sebastian Thiel2009-10-271-3/+20
| | | | | | 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
* Added remote stale_refs property including test, tested new remote branch ↵Sebastian Thiel2009-10-271-8/+38
| | | | handling and deletion of stale remote branches
* Added non-fast forward test case, fixed parsing issue caused by initial line ↵Sebastian Thiel2009-10-271-4/+15
| | | | stripping
* implemented test for rejection handling and fixed a bug when parsing remote ↵Sebastian Thiel2009-10-271-9/+24
| | | | reference paths
* Added testing frame for proper fetch testing to be very sure this works as ↵Sebastian Thiel2009-10-271-8/+42
| | | | expected. Plenty of cases still to be tested
* put _make_file helper method into TestBase classSebastian Thiel2009-10-272-15/+12
| | | | remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
* Merge branch 'index' into improvementsSebastian Thiel2009-10-265-19/+359
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-261-1/+80
| | | | | | | | index.checkout: added simple method allowing to checkout files from the index, including simple test
| * added head kwarg to reset and commit method, allowing to automatically ↵Sebastian Thiel2009-10-261-8/+31
| | | | | | | | 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-261-0/+18
| | | | | | | | commit, which possibly dereferences to the respective head
| * Merge branch 'refs' into indexSebastian Thiel2009-10-261-0/+90
| |\ | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * Refs can now set the reference they are pointing to in a controlled fashion ↵Sebastian Thiel2009-10-231-1/+17
| | | | | | | | | | | | by writing their ref file directly
| | * Added TagRefernce creation and deletion including testsSebastian Thiel2009-10-231-3/+40
| | | | | | | | | | | | Added RemoteReference deletion and test
| | * Implemented head methods: create, delete, rename, including testsSebastian Thiel2009-10-231-3/+32
| | |
| | * refs: added create, delete and rename methods where appropriate. Tests are ↵Sebastian Thiel2009-10-231-0/+8
| | | | | | | | | | | | marked, implementation is needed for most of them
| * | index.commit: implemented initial version, but in fact some more changes are ↵Sebastian Thiel2009-10-241-0/+12
| | | | | | | | | | | | 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-242-1/+20
| | | | | | | | | | | | 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-231-2/+62
| | |
| * | Implemented index.reset method including testSebastian Thiel2009-10-231-1/+27
| |/
| * Added frame for IndexFile add/remove/commit methods and respective test markersSebastian Thiel2009-10-231-0/+13
| |
| * Added repo.index property including simple test, and additional ideas in the ↵Sebastian Thiel2009-10-231-1/+5
| | | | | | | | TODO list
| * Renamed Index to IndexFile, adjusted tests, it will only operate on physical ↵Sebastian Thiel2009-10-231-17/+13
| | | | | | | | 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-231-0/+4
|/