aboutsummaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
AgeCommit message (Collapse)Author
2010-11-21flattened test folder structure, didn't adjust any file content yetSebastian Thiel
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-18Added test-setup which can test all aspects of the (smart) update methodSebastian Thiel
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-17Inital implementation of Submodule.move including a very simple and ↵Sebastian Thiel
to-be-improved test
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-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-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
2010-07-06RevParse now generally works, but there are still some more specialized ↵Sebastian Thiel
tests missing
2010-07-06Initial version of the rev-parse routine, which doesn't work too bad, but ↵Sebastian Thiel
its still rather slow and many tests are not yet implemented
2010-07-02win32 compatability adjustmentsunknown
2010-06-29Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel
the submodules's naming conventions
2010-06-29Removed repo tests which for some reason left the 'repos' directory around, ↵Sebastian Thiel
replaced them by a real test which actually executes code, and puts everything into the tmp directory
2010-06-28All tests adjusted to work with the changed internal sha representationSebastian Thiel
2010-06-03Fixed compatability issues with python 2.5, made sure all tests runSebastian Thiel
2010-06-02git.cmd: added test for stream section constraint used in git command, found ↵Sebastian Thiel
bug of course which just didn't kick in yet
2010-06-02commit: redesigned revlist and commit parsing, commits are always retrieved ↵Sebastian Thiel
from their object information directly. This is faster, and resolves issues with the rev-list format and empty commit messages Adjusted many tests to go with the changes, as they were still mocked. The mock was removed if necessary and replaced by code that actually executes
2010-06-02commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel
performance is slightly better git.cmd: added method to provide access to the content stream directly. This is more efficient if large objects are handled, if it is actually used test.helpers: removed unnecessary code
2010-05-12Repo: Added comparison operators and hash operator including testSebastian Thiel
Cmd: AutoInterrupt handles boundary cases more gracefully as it can be that the os module suddenly becomes None if the interpreter is going down
2010-05-10repo: added test with some basic assertions for empty repositories theseSebastian Thiel
repo.is_dirty: Will not fail on empty repo ( anymore ) index.entries: will just be empty if the repository is empty refs: added to_full_path method which can be used to create fully synthetic instances of Reference types, added a test for it Converted all touched files to spaces, which is why git reports so many changed files. Actually I was thinking every file would use spaces, but apparently not
2010-03-04Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel
2010-02-13IndexFile: unmerged_blobs lists are now sortedSebastian Thiel
Repo.init: fixed incorrect use of the path which was to optionally specify where to initialize the repository. Update test as well
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-05fixed test_repo to work on windowsSebastian Thiel
cmd: taskkill now pipes stderror to nul as well
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-03object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel
as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
2009-11-03repo: added create_* and delete_* methods for refs ( head, tag, remote ) as ↵Sebastian Thiel
a convenient shortcut to using the classes manually
2009-11-03repo.is_dirty: is a method now - the property based interface didn't allow ↵Sebastian Thiel
all parameters to be used. The test would not test everything either, and I would consider this a bug that slipped through
2009-10-23Added repo.index property including simple test, and additional ideas in the ↵Sebastian Thiel
TODO list
2009-10-22Adjusted tests to deal with API changesSebastian Thiel
2009-10-22Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel
appropriate
2009-10-22Git.cmd: removed with_raw_output optionSebastian Thiel
repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason
2009-10-20repo.alternates test cheked for correctness and bugfixed - totally mocked ↵Sebastian Thiel
tests bare the risk that things do not work properly outside of the sandbox.
2009-10-20Fixed bare repository handling - bare is now a property to prevent writing itSebastian Thiel
2009-10-20Moved specialized methods like dashify, touch and is_git_dir to module to ↵Sebastian Thiel
the respective modules that use them fixed repo.daemon_export which did not work anymore due to incorrect touch implementation and wrong property names
2009-10-20Improved is_dirty including testSebastian Thiel
2009-10-19Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel
simple tests
2009-10-19commit.count: is an instance method nowSebastian Thiel
repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
2009-10-19added additional testing for the configuration, concurrent access and config ↵Sebastian Thiel
reading, all tests work
2009-10-18Added frame for configuration reader involving a meta class, decorators and ↵Sebastian Thiel
tests - most of which still has to be filled out
2009-10-17Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel
is missing - these tests have to be redone in test-diff module accordingly
2009-10-16Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel
this was assumed - now there is a test for it as well repo: removed diff and commit_diff methods, added 'head' property returning the current head as Reference object
2009-10-16repo.untracked_files added including testSebastian Thiel
2009-10-15Improved archive function by allowing it to directly write to an output ↵Sebastian Thiel
stream - previously it would cache everything to memory and try to provide zipping functionality itself gitcmd: allows the output stream to be set explicitly which is mainly useful for archiving operations
2009-10-15repo: made init and clone methods less specific, previously they wanted to ↵Sebastian Thiel
do it 'barely' only. New method names closely follow the default git command names