aboutsummaryrefslogtreecommitdiff
path: root/test/git/test_submodule.py
AgeCommit message (Collapse)Author
2010-11-18Added test-setup which can test all aspects of the (smart) update methodSebastian Thiel
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-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-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-06-14Implemented initial version of tree serialization which appears to work ↵Sebastian Thiel
according to a simple test ( presort still needs implementation ) submodule: added stub to allow the tree to return something, its not implemented though