Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | accept datetime instances as dates | Alba Mendez | 2020-08-31 | 1 | -0/+5 | |
| | | | | | | There's no easy way to re-create a commit (i.e. for rewriting purposes), because dates must be formatted as strings, passed, then parsed back. This patch allows parse_date() to accept datetime instances, such as those produced by from_timestamp() above. | |||||
* | test: add installation test | Konrad Weihmann | 2020-07-12 | 1 | -0/+29 | |
| | | | | | | | | | which installs the current codebase in a venv and runs 'import git' to test if codebase can be installed properly. This adds virtualenv to the test requirements Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> | |||||
* | tests: move to root dir | Konrad Weihmann | 2020-07-12 | 98 | -0/+17463 | |
| | | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> | |||||
* | Revert moving tests out of 'git' folder, related to #1030 | Sebastian Thiel | 2020-07-12 | 98 | -17463/+0 | |
| | ||||||
* | tests: move to root dir | Konrad Weihmann | 2020-07-12 | 98 | -0/+17463 | |
| | | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> | |||||
* | Moved everything into the git subdirectory - some tests still need to be ↵ | Sebastian Thiel | 2010-11-25 | 67 | -8668/+0 | |
| | | | | adjusted | |||||
* | Implemented dry_run mode including tests for RootModule.update and Submodule | Sebastian Thiel | 2010-11-25 | 1 | -8/+61 | |
| | ||||||
* | submodule.update: previous_commit is now set according to the stored reflog ↵ | Sebastian Thiel | 2010-11-24 | 1 | -0/+3 | |
| | | | | value, and is not using ORIG_HEAD anymore | |||||
* | Adjusted remaining usages of set_reference and set_commit to set a logmessage | Sebastian Thiel | 2010-11-24 | 1 | -1/+1 | |
| | ||||||
* | Fixed doc strings, improved error checking on RefLog.write method | Sebastian Thiel | 2010-11-24 | 1 | -0/+3 | |
| | ||||||
* | RefLog: added entry_at method, which is a faster way of reading single ↵ | Sebastian Thiel | 2010-11-24 | 1 | -0/+13 | |
| | | | | entries, including test | |||||
* | Renamed msg named parameter to logmsg, as it describes the purpose of the ↵ | Sebastian Thiel | 2010-11-24 | 1 | -10/+7 | |
| | | | | | | message much better Added test for deletion of reflog file when the corresponding ref is deleted | |||||
* | Added tests for creation and adjustments of reference, verifying the log ↵ | Sebastian Thiel | 2010-11-24 | 1 | -32/+41 | |
| | | | | gets written | |||||
* | Fixed remaining issues, all tests work as expected | Sebastian Thiel | 2010-11-24 | 3 | -12/+17 | |
| | ||||||
* | Unified object and commit handling which should make the reflog handling ↵ | Sebastian Thiel | 2010-11-24 | 3 | -11/+12 | |
| | | | | much easier. There is some bug in it though, it still needs fixing | |||||
* | Made previously protected methods public to introduce a method with reflog ↵ | Sebastian Thiel | 2010-11-24 | 1 | -3/+14 | |
| | | | | support which cannot be exposed using the respective property. Ref-Creation is now fully implemented in python. For details, see doc/source/changes.rst | |||||
* | Improved refparse error handling in case of out-of-bound indices | Sebastian Thiel | 2010-11-24 | 1 | -1/+8 | |
| | ||||||
* | Implemented revlog.append_entry as classmethod, to assure we will always ↵ | Sebastian Thiel | 2010-11-23 | 1 | -8/+3 | |
| | | | | | | actually write_append the new entry, instead of rewriting the whole file. Added file-locking and directory handling, so the implementation should be similar (enough) to the git reference implementation. Next up is to implement a way to update the reflog when changing references, which is going to be a little more complicated | |||||
* | Removed ORIG_HEAD handling which was downright wrong. ORIG_HEAD gets only ↵ | Sebastian Thiel | 2010-11-23 | 2 | -30/+32 | |
| | | | | set during merge and rebase, and probably everything that changes the ref more drastically. Probably I have to reread that. What needs to be adjusted though is the reflog | |||||
* | Actor: Moved it from git.objects.util to git.util, adjusted all imports ↵ | Sebastian Thiel | 2010-11-23 | 3 | -3/+24 | |
| | | | | | | accordingly. Added methods to Actor to retrieve the global committer and author information Reflog: implemented and tested append_entry method | |||||
* | repo.rev_parse: Added support for simple log parsing - dates are not yet ↵ | Sebastian Thiel | 2010-11-23 | 1 | -3/+20 | |
| | | | | supported, mainly because I don't need it | |||||
* | SymbolicReference: log method added, including test | Sebastian Thiel | 2010-11-23 | 1 | -0/+3 | |
| | ||||||
* | Implemented reflog reading and writing | Sebastian Thiel | 2010-11-23 | 8 | -2/+638 | |
| | ||||||
* | Initial interface including some of the implementation of the RefLog. ↵ | Sebastian Thiel | 2010-11-23 | 5 | -7/+49 | |
| | | | | | | TestCase scetched out for now tests: Added tests to verify that objects don't have a dict. Previously, due to a missing __slots__ member in Serializable, most objects would indeed have a dict, although the opposite was intended | |||||
* | Updated MANIFEST and setup to include fixtures. Adjusted includes in all ↵ | Sebastian Thiel | 2010-11-21 | 20 | -26/+22 | |
| | | | | tests to work with the new directory structure | |||||
* | flattened test folder structure, didn't adjust any file content yet | Sebastian Thiel | 2010-11-21 | 26 | -5/+0 | |
| | ||||||
* | fixed performance tests ... again, previously I was just working on an ↵ | Sebastian Thiel | 2010-11-20 | 1 | -2/+2 | |
| | | | | incorrect repository | |||||
* | testing:added special case for osx to solve a special issue with the temp ↵ | Sebastian Thiel | 2010-11-20 | 1 | -3/+10 | |
| | | | | directory | |||||
* | Tried to get rid of held references which could keep a filehandle open. In ↵ | Sebastian Thiel | 2010-11-20 | 1 | -7/+9 | |
| | | | | fact, it didn't work, and ... something else keeps them open. Its odd, its weird, its windows, and I give up on it for now | |||||
* | Submodule: Assured we properly convert paths to using the slash separator | Sebastian Thiel | 2010-11-20 | 1 | -3/+3 | |
| | ||||||
* | submodule: Fixed capital error when handling the submodule's branch, which ↵ | Sebastian Thiel | 2010-11-20 | 1 | -2/+11 | |
| | | | | was returned in the submodules super repository, not in the submodule's module | |||||
* | Fixed performance tests which broke in the meanwhile - they definitely don't ↵ | Sebastian Thiel | 2010-11-20 | 2 | -3/+3 | |
| | | | | run often enough, which is because they intentionally don't have a package initialization file | |||||
* | test_submodule: fixed failures that arose due to changes of the original ↵ | Sebastian Thiel | 2010-11-19 | 2 | -11/+14 | |
| | | | | | | 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 | |||||
* | Fixed all imports, refactoring appears to be complete | Sebastian Thiel | 2010-11-18 | 1 | -2/+2 | |
| | ||||||
* | Added test for the recursive code path. | Sebastian Thiel | 2010-11-18 | 1 | -2/+11 | |
| | ||||||
* | Added test for branch changes - it appears to work well, at least as far as ↵ | Sebastian Thiel | 2010-11-18 | 1 | -7/+25 | |
| | | | | the restricted tests are concerned | |||||
* | Updated tests and implementation to verify functionality for handling ↵ | Sebastian Thiel | 2010-11-18 | 1 | -4/+42 | |
| | | | | submodule removals, as well as url changes | |||||
* | first update test succeeds, so it verifies that existing repositories can be ↵ | Sebastian Thiel | 2010-11-18 | 1 | -4/+35 | |
| | | | | 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) | |||||
* | Added test-setup which can test all aspects of the (smart) update method | Sebastian Thiel | 2010-11-18 | 2 | -3/+45 | |
| | ||||||
* | ORIG_HEAD handling is now implemented in the ref-class itself, instead of ↵ | Sebastian Thiel | 2010-11-18 | 1 | -0/+31 | |
| | | | | | | being a special case of the commit method; includes tests util: Fixed iterable lists, which broke due to an incorrectly implemented __contains__ method | |||||
* | commit: when creating a new commit and advancing the head, it will now write ↵ | Sebastian Thiel | 2010-11-18 | 1 | -0/+2 | |
| | | | | the ORIG_HEAD reference as well | |||||
* | RootModule.update: initial implementation of update method, which should be ↵ | Sebastian Thiel | 2010-11-17 | 1 | -4/+4 | |
| | | | | able to handle submodule removals, additions, path changes and branch changes. All this still needs to be tested though | |||||
* | repo: Added create_submodule method which fits into the tradition of ↵ | Sebastian Thiel | 2010-11-17 | 1 | -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 | |||||
* | submodule: removed module_path method as it is implemented in the abspath ↵ | Sebastian Thiel | 2010-11-17 | 1 | -3/+21 | |
| | | | | | | property alrdeady Improved submodule move tests | |||||
* | Inital implementation of Submodule.move including a very simple and ↵ | Sebastian Thiel | 2010-11-17 | 2 | -31/+32 | |
| | | | | to-be-improved test | |||||
* | Added rest of submodule.add test code which should be pretty much 100% ↵ | Sebastian Thiel | 2010-11-17 | 1 | -4/+38 | |
| | | | | coverage for it | |||||
* | The submodule's branch is now a branch instance, not a plain string anymore | Sebastian Thiel | 2010-11-16 | 1 | -1/+1 | |
| | ||||||
* | Added tests for all failure modes of submodule add ( except for one ), and ↵ | Sebastian Thiel | 2010-11-16 | 1 | -0/+24 | |
| | | | | fixed a few issues on the way | |||||
* | Initial implementation of submodule.add without any tests. These are to come ↵ | Sebastian Thiel | 2010-11-16 | 1 | -7/+15 | |
| | | | | next | |||||
* | Implemented deletion of submodules including proper tests | Sebastian Thiel | 2010-11-16 | 1 | -0/+50 | |
| |