summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
Commit message (Collapse)AuthorAgeFilesLines
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-580/+0
|
* test_submodule: fixed failures that arose due to changes of the original ↵Sebastian Thiel2010-11-191-1/+1
| | | | | | 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
* Added test-setup which can test all aspects of the (smart) update methodSebastian Thiel2010-11-181-0/+2
|
* repo: Added create_submodule method which fits into the tradition of ↵Sebastian Thiel2010-11-171-0/+5
| | | | | | 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
* Inital implementation of Submodule.move including a very simple and ↵Sebastian Thiel2010-11-171-0/+9
| | | | to-be-improved test
* Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel2010-11-151-1/+1
| | | | was mainly copy-paste from with_rw_repo, what a shame
* Repo: added submodule query and iteration methods similar to the ones ↵Sebastian Thiel2010-11-151-0/+10
| | | | provided for Remotes, including test
* Added python 2.4 support: Repo will now use the original GitCmdObjectDB in ↵Sebastian Thiel2010-07-091-0/+7
| | | | python 2.4, as the pure python implementation cannot work without memory maps
* Adjusted clone method to allow static classmethod clone ( using clone_from ) ↵Sebastian Thiel2010-07-071-1/+15
| | | | | | as well as the previous instance method clone to keep it compatible Fixed small bug in test code
* Adjusted previous object creators to use the rev_parse method directly. ↵Sebastian Thiel2010-07-071-3/+18
| | | | 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
* Initially working implementation of short-sha parsing and interpretation, ↵Sebastian Thiel2010-07-071-34/+39
| | | | thanks to new gitdb functionality
* Implemented main rev-parsing, including long hexshas, tags and refs. Short ↵Sebastian Thiel2010-07-061-8/+32
| | | | Shas still to be done
* RevParse now generally works, but there are still some more specialized ↵Sebastian Thiel2010-07-061-6/+18
| | | | tests missing
* Initial version of the rev-parse routine, which doesn't work too bad, but ↵Sebastian Thiel2010-07-061-26/+125
| | | | its still rather slow and many tests are not yet implemented
* win32 compatability adjustmentsunknown2010-07-021-2/+2
|
* Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel2010-06-291-1/+1
| | | | the submodules's naming conventions
* Removed repo tests which for some reason left the 'repos' directory around, ↵Sebastian Thiel2010-06-291-40/+13
| | | | replaced them by a real test which actually executes code, and puts everything into the tmp directory
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-5/+5
|
* Fixed compatability issues with python 2.5, made sure all tests runSebastian Thiel2010-06-031-1/+1
|
* git.cmd: added test for stream section constraint used in git command, found ↵Sebastian Thiel2010-06-021-288/+363
| | | | bug of course which just didn't kick in yet
* commit: redesigned revlist and commit parsing, commits are always retrieved ↵Sebastian Thiel2010-06-021-22/+17
| | | | | | 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
* commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel2010-06-021-2/+3
| | | | | | | 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
* Repo: Added comparison operators and hash operator including testSebastian Thiel2010-05-121-1/+6
| | | | Cmd: AutoInterrupt handles boundary cases more gracefully as it can be that the os module suddenly becomes None if the interpreter is going down
* repo: added test with some basic assertions for empty repositories theseSebastian Thiel2010-05-101-1/+33
| | | | | | | | 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
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-254/+254
|
* IndexFile: unmerged_blobs lists are now sortedSebastian Thiel2010-02-131-11/+28
| | | | Repo.init: fixed incorrect use of the path which was to optionally specify where to initialize the repository. Update test as well
* repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel2009-12-031-6/+6
| | | | safer to use in case of bare repositories
* repo: fixed incorrect path handling thta could lead to issues if the ↵Sebastian Thiel2009-12-031-0/+7
| | | | repository was initialized with a .git repository, although it was not bare actually
* fixed test_repo to work on windowsSebastian Thiel2009-11-051-6/+6
| | | | cmd: taskkill now pipes stderror to nul as well
* Improved cmd error handling in case an invalid revision is specified for an ↵Sebastian Thiel2009-11-041-0/+8
| | | | | | object repo.tree: improved to be less restricting
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-5/+5
| | | | 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 Thiel2009-11-031-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 Thiel2009-11-031-3/+3
| | | | all parameters to be used. The test would not test everything either, and I would consider this a bug that slipped through
* Added repo.index property including simple test, and additional ideas in the ↵Sebastian Thiel2009-10-231-1/+5
| | | | TODO list
* Adjusted tests to deal with API changesSebastian Thiel2009-10-221-8/+2
|
* Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel2009-10-221-46/+42
| | | | appropriate
* Git.cmd: removed with_raw_output optionSebastian Thiel2009-10-221-0/+5
| | | | | repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason
* repo.alternates test cheked for correctness and bugfixed - totally mocked ↵Sebastian Thiel2009-10-201-10/+8
| | | | tests bare the risk that things do not work properly outside of the sandbox.
* Fixed bare repository handling - bare is now a property to prevent writing itSebastian Thiel2009-10-201-4/+9
|
* Moved specialized methods like dashify, touch and is_git_dir to module to ↵Sebastian Thiel2009-10-201-8/+7
| | | | | | the respective modules that use them fixed repo.daemon_export which did not work anymore due to incorrect touch implementation and wrong property names
* Improved is_dirty including testSebastian Thiel2009-10-201-12/+10
|
* Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel2009-10-191-0/+3
| | | | simple tests
* commit.count: is an instance method nowSebastian Thiel2009-10-191-0/+13
| | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
* added additional testing for the configuration, concurrent access and config ↵Sebastian Thiel2009-10-191-2/+7
| | | | reading, all tests work
* Added frame for configuration reader involving a meta class, decorators and ↵Sebastian Thiel2009-10-181-3/+15
| | | | tests - most of which still has to be filled out
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-171-35/+1
| | | | is missing - these tests have to be redone in test-diff module accordingly
* Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel2009-10-161-0/+3
| | | | | | 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
* repo.untracked_files added including testSebastian Thiel2009-10-161-0/+25
|
* Improved archive function by allowing it to directly write to an output ↵Sebastian Thiel2009-10-151-5/+8
| | | | | | 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
* repo: made init and clone methods less specific, previously they wanted to ↵Sebastian Thiel2009-10-151-14/+12
| | | | do it 'barely' only. New method names closely follow the default git command names