aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2009-12-08config.get_value: Added default argument including testSebastian Thiel
2009-12-07index: Checkout exception now contains information about the reason of the ↵Sebastian Thiel
failure as well, one per failed file
2009-12-07Reference: reading of commit data is now safer and handles non-existing ↵Sebastian Thiel
paths - previously it would run into a code-branch I forgot
2009-12-04SymbolicRefence base is now fully aware of pack files in all operations.Sebastian Thiel
Ref(anytype) Iteration was improved such that automatic filtering now also works for SymbolicReferences ( which only return symbolic refs)
2009-12-04refs: Fixed incorrect retrieval of symbolic reference types - previously we ↵Sebastian Thiel
only really knew heads, now we know references as a common base. The adjustment make the ref system as flexible as it was originally meant to be
2009-12-04SymbolicReference creation now won't fail if the target already exists and ↵Sebastian Thiel
has the same content as the new reference
2009-12-03refs.rename: improved handling as it will only raise ( if not forced ) if ↵Sebastian Thiel
the destination contains different data. If it contains the same, the move will work as we can do what the user intended
2009-12-03refs: Implemented low-level (Symbolic)Reference renaming as some references ↵Sebastian Thiel
cannot be reamed using the git-branch command if they are not in refs/heads, that is in a non-standard refs folder
2009-12-03config: implemented get_value method to have a safe way to make general ↵Sebastian Thiel
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
2009-12-03repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel
safer to use in case of bare repositories
2009-12-03repo: fixed incorrect path handling thta could lead to issues if the ↵Sebastian Thiel
repository was initialized with a .git repository, although it was not bare actually
2009-11-30index: Added BlobFilter utility class to make filtering of blobs from the ↵Sebastian Thiel
index easier
2009-11-30SymbolicReference.delete: Now takes SymbolicReference instances as well, not ↵Sebastian Thiel
only paths diff.__str__: fixed incorrect message generation error
2009-11-30Generalized custom reference creation down to SymbolicReference level. ↵Sebastian Thiel
'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
2009-11-30ref: Added general method to create and delete any reference pointing to any ↵Sebastian Thiel
object. They are only constrained to be located in the refs/ directory
2009-11-27Traversable.traverse: Added as_edge option allowing to receive the source of ↵Sebastian Thiel
the item as well to enable predicates to do more proper checking
2009-11-27Fixed issue with commit traversal due to missing visit_once in the traversal ↵Sebastian Thiel
method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive
2009-11-27Added test that gets into a commit traversal loopSebastian Thiel
2009-11-27ItemTraversal: Predicate and prune functions now provide depth information, ↵Sebastian Thiel
allowing the callee to know more about its environment
2009-11-26tree: added traversal method, adjusted testsSebastian Thiel
Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\!
2009-11-26objects.utils: Added Traversable base and implemented it for commits ↵Sebastian Thiel
including a test
2009-11-26SymbolicReference is now the base for all references, allowing them to ↵Sebastian Thiel
appear litereally anywhere. A 'default' reference is nothing more than a detached symbolic reference. Added method iterate the packed refs file
2009-11-26SymbolicReferences can now be at any path within the repository, there is no ↵Sebastian Thiel
restriction anymore. Added a test to assure the git commands can handle it
2009-11-25index.write_tree: fixed bug that would cause the written tree not to contain ↵Sebastian Thiel
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
2009-11-24PushInfo: added summary field to help providing user readable informationSebastian Thiel
Index.checkout: fixed bug in exception creator function
2009-11-24diff: Added additional assertion to test: paths not in the index should not ↵Sebastian Thiel
trigger an error
2009-11-24index.merge_tree function added including test.Sebastian Thiel
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
2009-11-23remote.fetch: fetchInfo would not provide old_commit information in case of ↵Sebastian Thiel
fast_forwards although. Renamed cumbersome 'commit_before_forced_updated' attribute to 'old_commit' to be en par with PushInfo
2009-11-23index.checkout: improved handling of errors as the thrown exception contains ↵Sebastian Thiel
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
2009-11-23index.checkout: Now parsing stderror in the end to determine which files ↵Sebastian Thiel
have not been updated as they where modified locally or did not exist. Test was improved to check for this new case.
2009-11-22index.checkout: Added progress function and made adjustments to testSebastian Thiel
2009-11-20index.add: added progress function support and made sure progress is sent ↵Sebastian Thiel
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 )
2009-11-18index: Added IndexEntry.from_base method including test in conjunction with ↵Sebastian Thiel
symlinks. Added index.get_entries_key method to allow direct access to anyone willing to do so
2009-11-06test_remote: fixed test which assumed existance of local master tracking ↵Sebastian Thiel
branch, it will now create it if necessary
2009-11-06Index tests adopted to windows - especially the symlink test needed ↵Sebastian Thiel
adjustment, but it works as expected even on systems that do not support symlinks
2009-11-05ARGH: wb and rb is not the same as r and w on windows, hence reading of ↵Sebastian Thiel
binary files went crazy as well as binary writing
2009-11-05test_commit: commit.count actually returned incorrect values on linux, ↵Sebastian Thiel
namely 141 instead of 143. Manual checking showed that 143 is the correct number, on linux this will have to be fixed
2009-11-05helper: repo creation functions now handle errors on windows during ↵Sebastian Thiel
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 ?
2009-11-05removed large-input test as it is totally dependent on the subprocess ↵Sebastian Thiel
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
2009-11-05repo.clone: Added plenty of special handling to allow drive letters to work ↵Sebastian Thiel
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 )
2009-11-05fixed test_repo to work on windowsSebastian Thiel
cmd: taskkill now pipes stderror to nul as well
2009-11-05cmd: added clear_cache method now used by test repo decorators to be sure ↵Sebastian Thiel
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
2009-11-04improved error when setting up server based test to make clear a server ↵Sebastian Thiel
needs to be started
2009-11-04helpers: fixed and improved test repo decorators to use the new ↵Sebastian Thiel
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
2009-11-04head.checkout method added including testSebastian Thiel
2009-11-04added query for 'M' modified diffs to DiffIndex including test. The latter ↵Sebastian Thiel
one was made faster by reducing the amount of permutations to the minimal value
2009-11-04Improved cmd error handling in case an invalid revision is specified for an ↵Sebastian Thiel
object repo.tree: improved to be less restricting
2009-11-04IndexObject: assured that .path fields are relative to the repository ( ↵Sebastian Thiel
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
2009-11-03refs: iter_items now imlemented natively for additional performance. We did ↵Sebastian Thiel
not implement the crazy sorting feature found in git-for-each-ref though
2009-11-03Now using git-update-ref and git-symbolic-ref to update references with ↵Sebastian Thiel
reflog support. This should be manually implemented though for more performance, what it does is relatively easy