aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2010-11-20submodule: Fixed capital error when handling the submodule's branch, which ↵Sebastian Thiel
was returned in the submodules super repository, not in the submodule's module
2010-11-20Fixed performance tests which broke in the meanwhile - they definitely don't ↵Sebastian Thiel
run often enough, which is because they intentionally don't have a package initialization file
2010-11-19test_submodule: fixed failures that arose due to changes of the original ↵Sebastian Thiel
submodule names. Also, a major bug was fixed that cased submodules to always being updated recursively when using the RootModule.update method submodule: previously, it would update the repository configuration during add(), but in fact it must be done during update() when the module is cloned, which is how the git-submodule implementation works
2010-11-18Fixed all imports, refactoring appears to be completeSebastian Thiel
2010-11-18Added test for the recursive code path.Sebastian Thiel
2010-11-18Added test for branch changes - it appears to work well, at least as far as ↵Sebastian Thiel
the restricted tests are concerned
2010-11-18Updated tests and implementation to verify functionality for handling ↵Sebastian Thiel
submodule removals, as well as url changes
2010-11-18first update test succeeds, so it verifies that existing repositories can be ↵Sebastian Thiel
moved later if the configuration changed, and actually it also verifies that the url-change is handled correctly (as we changed the url from the default to the local path)
2010-11-18Added test-setup which can test all aspects of the (smart) update methodSebastian Thiel
2010-11-18ORIG_HEAD handling is now implemented in the ref-class itself, instead of ↵Sebastian Thiel
being a special case of the commit method; includes tests util: Fixed iterable lists, which broke due to an incorrectly implemented __contains__ method
2010-11-18commit: when creating a new commit and advancing the head, it will now write ↵Sebastian Thiel
the ORIG_HEAD reference as well
2010-11-17RootModule.update: initial implementation of update method, which should be ↵Sebastian Thiel
able to handle submodule removals, additions, path changes and branch changes. All this still needs to be tested though
2010-11-17repo: Added create_submodule method which fits into the tradition of ↵Sebastian Thiel
offering a create_* method for most important entities. Moved implementation of smart update method to the RootModule implementation, where it may do special things without requiring an interface for everything
2010-11-17submodule: removed module_path method as it is implemented in the abspath ↵Sebastian Thiel
property alrdeady Improved submodule move tests
2010-11-17Inital implementation of Submodule.move including a very simple and ↵Sebastian Thiel
to-be-improved test
2010-11-17Added rest of submodule.add test code which should be pretty much 100% ↵Sebastian Thiel
coverage for it
2010-11-16The submodule's branch is now a branch instance, not a plain string anymoreSebastian Thiel
2010-11-16Added tests for all failure modes of submodule add ( except for one ), and ↵Sebastian Thiel
fixed a few issues on the way
2010-11-16Initial implementation of submodule.add without any tests. These are to come ↵Sebastian Thiel
next
2010-11-16Implemented deletion of submodules including proper testsSebastian Thiel
2010-11-16implemented update to_last_revision option including test. Its now possible ↵Sebastian Thiel
to update submodules such as svn-externals
2010-11-16Improved efficiency of the submodule.update process, improved testSebastian Thiel
2010-11-16remote: added methods to set and query the tracking branch status of normal ↵Sebastian Thiel
heads, including test. Config: SectionConstraint was updated with additional callable methods, the complete ConfigParser interface should be covered now Remote: refs methods is much more efficient now as it will set the search path to the directory containing the remote refs - previously it used the remotes/ base directory and pruned the search result
2010-11-16Added a few utility methods and improved the test. Refs need an improvement ↵Sebastian Thiel
though to allow easy configuration of branch-specific settings
2010-11-16Submodule now only supports branches to be given as hint that will ↵Sebastian Thiel
svn-external like behaviour. Implemented first version of update, which works for now, but probably needs to see more features
2010-11-15Added partial implementation of update, but realized that using refs in ↵Sebastian Thiel
general may be contradicting if a tag is given there, as well as a commit sha of the submodule. Hence it should really be only a branch
2010-11-15Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel
was mainly copy-paste from with_rw_repo, what a shame
2010-11-15Repo: added submodule query and iteration methods similar to the ones ↵Sebastian Thiel
provided for Remotes, including test
2010-11-15Objects: Constructor now manually checks and sets the input arguments to the ↵Sebastian Thiel
local cache - previously a procedural approach was used, which was less code, but slower too. Especially in case of CommitObjects unrolling the loop manually makes a difference. Submodule: Implemented query methods and did a bit of testing. More is to come, but the test works for now. As special addition, the submodule implementation uses the section name as submodule ID even though it seems to be just the path. This allows to make renames easier
2010-11-15Improved GitConfigurationParser to better deal with streams and the ↵Sebastian Thiel
corresponding locks. Submodule class now operates on parent_commits, the configuration is either streamed from the repository or written directly into a blob ( or file ) dependending on whether we have a working tree checkout or not which matches our parent_commit
2010-11-15submodule: Fleshed out interface, and a partial test which is not yet ↵Sebastian Thiel
usable. It showed that the ConfigParser needs some work. If the root is set, it also needs to refer to the root_commit instead of to the root-tree, as it will have to decide whether it works on the working tree's version of the .gitmodules file or the one in the repository
2010-11-06test_refs: fixed failing tests just by making it less strict. It is ↵Sebastian Thiel
dependent on the setup of the surrounding repository, hence the amount of ref-types found is actually variable, as long as they get more
2010-10-27index.reset: updated parameter docs, but most importantly, the method now ↵Sebastian Thiel
has better testing for the use of paths during reset. The IndexFile now implements this on its own, which also allows for something equivalent to git-reset --hard -- <paths>, which is not possible in the git command for some probably very good reason
2010-10-27Fixed bug that would cause the author's email to be a generic default one, ↵Sebastian Thiel
instead of the existing and valid. The rest of the ConfigParser handling is correct, as it reads all configuration files available to git see http://github.com/Byron/GitPython/issues#issue/1
2010-10-27cmd: improved error handling and debug printingSebastian Thiel
head.reset: will now handle resets with paths much better, especially in the --mixed case, see http://github.com/Byron/GitPython/issues#issue/2
2010-10-25.gitignore will now ignore netbeans projectsSebastian Thiel
Fixed test which used the --force flag on move, but there is only a short version (left) it appears
2010-10-15Adjusted regex to support whitespace - it was a little restrictive ↵Sebastian Thiel
previously, although there was absolutely no need for that. See http://byronimo.lighthouseapp.com/projects/51787/tickets/41-diff-regex-lib_git_diffpy-cannot-handle-paths-with-spaces
2010-10-15Added unicode handling for author names. They will now be properly encoded ↵Sebastian Thiel
into the byte stream, as well as decoded from it
2010-10-15Added test to verify the actor type can handle and parse unicode if it is ↵Sebastian Thiel
passed in test_odb: added more information to the message output
2010-10-15Fixed bug in ↵Sebastian Thiel
http://byronimo.lighthouseapp.com/projects/51787/tickets/44-remoteref-fails-when-there-is-character-in-the-name using supplied patch ( which was manually applied ). Fixed slightly broken test for remote handling
2010-07-15Index._iter_expand_paths: fixed tiny error with large impact, there was code ↵Sebastian Thiel
using a / in a hardcoded fashion, leading to absolute paths where the caller expected relative ones
2010-07-14Added performance test to compare inst.__class__() vs type(inst)() class. ↵Sebastian Thiel
The first one is faster, although I would have expected the latter one to be faster
2010-07-13Fixed incorrect use of Blob.data in performance testSebastian Thiel
2010-07-11Moved test-centric windows specific fix into the class itself to assure this ↵Sebastian Thiel
kind of issue doesn't popup for anyone
2010-07-09Added python 2.4 support: Repo will now use the original GitCmdObjectDB in ↵Sebastian Thiel
python 2.4, as the pure python implementation cannot work without memory maps
2010-07-07Adjusted clone method to allow static classmethod clone ( using clone_from ) ↵Sebastian Thiel
as well as the previous instance method clone to keep it compatible Fixed small bug in test code
2010-07-07Added test for GitCmdObjectDB in order to verify the ↵Sebastian Thiel
partial_to_complete_sha_hex is working as expected with different input ( it wasn't, of course ;) )
2010-07-07Adjusted previous object creators to use the rev_parse method directly. ↵Sebastian Thiel
rev_parse could be adjusted not to return Objects anymore, providing better performance for those who just want a sha only. On the other hand, the method is high-level and should be convenient to use as well, its a starting point for more usually, hence its unlikely to call it in tight loops
2010-07-07Initially working implementation of short-sha parsing and interpretation, ↵Sebastian Thiel
thanks to new gitdb functionality
2010-07-06Implemented main rev-parsing, including long hexshas, tags and refs. Short ↵Sebastian Thiel
Shas still to be done