Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refs.rename: improved handling as it will only raise ( if not forced ) if ↵ | Sebastian Thiel | 2009-12-03 | 1 | -1/+4 |
| | | | | the destination contains different data. If it contains the same, the move will work as we can do what the user intended | ||||
* | refs: Implemented low-level (Symbolic)Reference renaming as some references ↵ | Sebastian Thiel | 2009-12-03 | 1 | -0/+24 |
| | | | | cannot be reamed using the git-branch command if they are not in refs/heads, that is in a non-standard refs folder | ||||
* | config: implemented get_value method to have a safe way to make general ↵ | Sebastian Thiel | 2009-12-03 | 1 | -0/+2 |
| | | | | queries to the git configuration, returning a value in the proper type. In a way its not supposed to be used as you should know the type of your configuration option or get an exception otherwise | ||||
* | repo: renamed directories to more descriptive identifiers and made them ↵ | Sebastian Thiel | 2009-12-03 | 6 | -20/+20 |
| | | | | safer to use in case of bare repositories | ||||
* | repo: fixed incorrect path handling thta could lead to issues if the ↵ | Sebastian Thiel | 2009-12-03 | 1 | -0/+7 |
| | | | | repository was initialized with a .git repository, although it was not bare actually | ||||
* | index: Added BlobFilter utility class to make filtering of blobs from the ↵ | Sebastian Thiel | 2009-11-30 | 1 | -0/+5 |
| | | | | index easier | ||||
* | SymbolicReference.delete: Now takes SymbolicReference instances as well, not ↵ | Sebastian Thiel | 2009-11-30 | 1 | -2/+3 |
| | | | | | | only paths diff.__str__: fixed incorrect message generation error | ||||
* | Generalized custom reference creation down to SymbolicReference level. ↵ | Sebastian Thiel | 2009-11-30 | 1 | -0/+14 |
| | | | | 'Reference' implementation now shares all the code from the SymbolicReference base. This implementation allows to create any reference you'd like without requireing git calls | ||||
* | ref: Added general method to create and delete any reference pointing to any ↵ | Sebastian Thiel | 2009-11-30 | 1 | -0/+17 |
| | | | | object. They are only constrained to be located in the refs/ directory | ||||
* | Traversable.traverse: Added as_edge option allowing to receive the source of ↵ | Sebastian Thiel | 2009-11-27 | 1 | -2/+3 |
| | | | | the item as well to enable predicates to do more proper checking | ||||
* | Fixed issue with commit traversal due to missing visit_once in the traversal ↵ | Sebastian Thiel | 2009-11-27 | 2 | -5/+3 |
| | | | | method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive | ||||
* | Added test that gets into a commit traversal loop | Sebastian Thiel | 2009-11-27 | 2 | -8/+36 |
| | |||||
* | ItemTraversal: Predicate and prune functions now provide depth information, ↵ | Sebastian Thiel | 2009-11-27 | 3 | -7/+7 |
| | | | | allowing the callee to know more about its environment | ||||
* | tree: added traversal method, adjusted tests | Sebastian Thiel | 2009-11-26 | 3 | -10/+19 |
| | | | | Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\! | ||||
* | objects.utils: Added Traversable base and implemented it for commits ↵ | Sebastian Thiel | 2009-11-26 | 1 | -0/+26 |
| | | | | including a test | ||||
* | SymbolicReference is now the base for all references, allowing them to ↵ | Sebastian Thiel | 2009-11-26 | 1 | -8/+2 |
| | | | | | | appear litereally anywhere. A 'default' reference is nothing more than a detached symbolic reference. Added method iterate the packed refs file | ||||
* | SymbolicReferences can now be at any path within the repository, there is no ↵ | Sebastian Thiel | 2009-11-26 | 1 | -3/+27 |
| | | | | | | restriction anymore. Added a test to assure the git commands can handle it | ||||
* | index.write_tree: fixed bug that would cause the written tree not to contain ↵ | Sebastian Thiel | 2009-11-25 | 1 | -1/+5 |
| | | | | any of our changes entries as it would in fact write a possibly cached tree stored in our extension data.It was solved by simply ignoring that extension data when writing the index for tree creation. A test was added for this as well | ||||
* | PushInfo: added summary field to help providing user readable information | Sebastian Thiel | 2009-11-24 | 1 | -0/+2 |
| | | | | Index.checkout: fixed bug in exception creator function | ||||
* | diff: Added additional assertion to test: paths not in the index should not ↵ | Sebastian Thiel | 2009-11-24 | 1 | -0/+7 |
| | | | | trigger an error | ||||
* | index.merge_tree function added including test. | Sebastian Thiel | 2009-11-24 | 1 | -1/+51 |
| | | | | index.write_tree may now use the missing_ok argument which writes trees faster and allows you to operate without objects to do a true index based merge | ||||
* | remote.fetch: fetchInfo would not provide old_commit information in case of ↵ | Sebastian Thiel | 2009-11-23 | 1 | -3/+3 |
| | | | | fast_forwards although. Renamed cumbersome 'commit_before_forced_updated' attribute to 'old_commit' to be en par with PushInfo | ||||
* | index.checkout: improved handling of errors as the thrown exception contains ↵ | Sebastian Thiel | 2009-11-23 | 1 | -4/+14 |
| | | | | | | exact information about the successfully checked out files as well as the failed ones Return value of the method is an iterator to all checked out files | ||||
* | index.checkout: Now parsing stderror in the end to determine which files ↵ | Sebastian Thiel | 2009-11-23 | 1 | -4/+20 |
| | | | | have not been updated as they where modified locally or did not exist. Test was improved to check for this new case. | ||||
* | index.checkout: Added progress function and made adjustments to test | Sebastian Thiel | 2009-11-22 | 1 | -30/+34 |
| | |||||
* | index.add: added progress function support and made sure progress is sent ↵ | Sebastian Thiel | 2009-11-20 | 1 | -7/+46 |
| | | | | | | just in time This adds a dependency to a git update index fix - and I hope it will be put in in time ( including windows version ) | ||||
* | index: Added IndexEntry.from_base method including test in conjunction with ↵ | Sebastian Thiel | 2009-11-18 | 1 | -1/+14 |
| | | | | | | symlinks. Added index.get_entries_key method to allow direct access to anyone willing to do so | ||||
* | test_remote: fixed test which assumed existance of local master tracking ↵ | Sebastian Thiel | 2009-11-06 | 1 | -1/+7 |
| | | | | branch, it will now create it if necessary | ||||
* | Index tests adopted to windows - especially the symlink test needed ↵ | Sebastian Thiel | 2009-11-06 | 2 | -3/+11 |
| | | | | 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 Thiel | 2009-11-05 | 2 | -5/+5 |
| | | | | binary files went crazy as well as binary writing | ||||
* | test_commit: commit.count actually returned incorrect values on linux, ↵ | Sebastian Thiel | 2009-11-05 | 1 | -1/+1 |
| | | | | namely 141 instead of 143. Manual checking showed that 143 is the correct number, on linux this will have to be fixed | ||||
* | helper: repo creation functions now handle errors on windows during ↵ | Sebastian Thiel | 2009-11-05 | 1 | -5/+16 |
| | | | | os.remove by changing the mode to 777 and delete the file again. Otherwise the whole operation would fail on read-only files. Why is windows as it is ? Why does it do that to me ? | ||||
* | removed large-input test as it is totally dependent on the subprocess ↵ | Sebastian Thiel | 2009-11-05 | 1 | -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 | ||||
* | repo.clone: Added plenty of special handling to allow drive letters to work ↵ | Sebastian Thiel | 2009-11-05 | 1 | -1/+4 |
| | | | | | | as expected. Its quite terrible to see a two-line method inflate to 20 as there is no git-daemon on windows, some tests will not work. The error message has been adjusted to be more precise for the poor people trying to run the tests on windows ( including myself ) | ||||
* | fixed test_repo to work on windows | Sebastian Thiel | 2009-11-05 | 1 | -6/+6 |
| | | | | cmd: taskkill now pipes stderror to nul as well | ||||
* | cmd: added clear_cache method now used by test repo decorators to be sure ↵ | Sebastian Thiel | 2009-11-05 | 1 | -0/+4 |
| | | | | persistent commands are killed before trying to remove the directory. Unfortunately, it still claims someone has opened the file. handle.exe does not show anyone, so what is happening here ? Is it just a windows odity ? If nothing helps I could just keep the temp data, but lets do some more testing first | ||||
* | improved error when setting up server based test to make clear a server ↵ | Sebastian Thiel | 2009-11-04 | 1 | -2/+10 |
| | | | | needs to be started | ||||
* | helpers: fixed and improved test repo decorators to use the new ↵ | Sebastian Thiel | 2009-11-04 | 3 | -8/+8 |
| | | | | | | 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 test | Sebastian Thiel | 2009-11-04 | 1 | -1/+22 |
| | |||||
* | added query for 'M' modified diffs to DiffIndex including test. The latter ↵ | Sebastian Thiel | 2009-11-04 | 1 | -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 Thiel | 2009-11-04 | 2 | -1/+9 |
| | | | | | | object repo.tree: improved to be less restricting | ||||
* | IndexObject: assured that .path fields are relative to the repository ( ↵ | Sebastian Thiel | 2009-11-04 | 1 | -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 Thiel | 2009-11-03 | 2 | -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 Thiel | 2009-11-03 | 1 | -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 Thiel | 2009-11-03 | 6 | -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 Thiel | 2009-11-03 | 1 | -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 Thiel | 2009-11-03 | 1 | -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 Thiel | 2009-11-03 | 1 | -3/+20 |
| | | | | studied, but they would be hard to 'produce' | ||||
* | Intermediate commit with a few added and improved tests as well as many fixes | Sebastian Thiel | 2009-11-03 | 1 | -7/+61 |
| | |||||
* | Implemented PushProgress and PushInfo class including basic test cases. Now ↵ | Sebastian Thiel | 2009-11-02 | 1 | -6/+48 |
| | | | | many more test-cases need to be added to be sure we can truly deal with everything git throws at us |