Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reference: reading of commit data is now safer and handles non-existing ↵ | Sebastian Thiel | 2009-12-07 | 1 | -2/+4 |
| | | | | paths - previously it would run into a code-branch I forgot | ||||
* | SymbolicRefence base is now fully aware of pack files in all operations. | Sebastian Thiel | 2009-12-04 | 1 | -96/+171 |
| | | | | Ref(anytype) Iteration was improved such that automatic filtering now also works for SymbolicReferences ( which only return symbolic refs) | ||||
* | refs: Fixed incorrect retrieval of symbolic reference types - previously we ↵ | Sebastian Thiel | 2009-12-04 | 1 | -3/+3 |
| | | | | only really knew heads, now we know references as a common base. The adjustment make the ref system as flexible as it was originally meant to be | ||||
* | SymbolicReference creation now won't fail if the target already exists and ↵ | Sebastian Thiel | 2009-12-04 | 1 | -7/+18 |
| | | | | has the same content as the new reference | ||||
* | refs.rename: improved handling as it will only raise ( if not forced ) if ↵ | Sebastian Thiel | 2009-12-03 | 1 | -2/+7 |
| | | | | the destination contains different data. If it contains the same, the move will work as we can do what the user intended | ||||
* | refs: Implemented low-level (Symbolic)Reference renaming as some references ↵ | Sebastian Thiel | 2009-12-03 | 1 | -1/+46 |
| | | | | cannot be reamed using the git-branch command if they are not in refs/heads, that is in a non-standard refs folder | ||||
* | repo: renamed directories to more descriptive identifiers and made them ↵ | Sebastian Thiel | 2009-12-03 | 1 | -6/+6 |
| | | | | safer to use in case of bare repositories | ||||
* | SymbolicReference.delete: Now takes SymbolicReference instances as well, not ↵ | Sebastian Thiel | 2009-11-30 | 1 | -0/+3 |
| | | | | | | only paths diff.__str__: fixed incorrect message generation error | ||||
* | Generalized custom reference creation down to SymbolicReference level. ↵ | Sebastian Thiel | 2009-11-30 | 1 | -35/+76 |
| | | | | 'Reference' implementation now shares all the code from the SymbolicReference base. This implementation allows to create any reference you'd like without requireing git calls | ||||
* | ref: Added general method to create and delete any reference pointing to any ↵ | Sebastian Thiel | 2009-11-30 | 1 | -2/+69 |
| | | | | object. They are only constrained to be located in the refs/ directory | ||||
* | SymbolicReference is now the base for all references, allowing them to ↵ | Sebastian Thiel | 2009-11-26 | 1 | -24/+53 |
| | | | | | | appear litereally anywhere. A 'default' reference is nothing more than a detached symbolic reference. Added method iterate the packed refs file | ||||
* | Initially put SymbolicRef as base class of Reference, which theoretically is ↵ | Sebastian Thiel | 2009-11-26 | 1 | -185/+161 |
| | | | | how it should be, but many tests are still failing as the implementation is not yet there | ||||
* | SymbolicReferences can now be at any path within the repository, there is no ↵ | Sebastian Thiel | 2009-11-26 | 1 | -19/+18 |
| | | | | | | restriction anymore. Added a test to assure the git commands can handle it | ||||
* | Added utilities helping to create proper paths either with slashes or ↵ | Sebastian Thiel | 2009-11-05 | 1 | -6/+6 |
| | | | | | | | backslashes depending on the operating system fixed test_refs and test_trees Many more issues remain though, this is just a first backup commit | ||||
* | head.checkout method added including test | Sebastian Thiel | 2009-11-04 | 1 | -1/+33 |
| | |||||
* | added all new files to reference.rst and corrected the worst mistakes. There ↵ | Sebastian Thiel | 2009-11-04 | 1 | -3/+2 |
| | | | | are still a few errors left that I cannot fix as it complains about whitespace in the end ... that is exactly what I hate restructured text for, its just a ... anyway. | ||||
* | refs: iter_items now imlemented natively for additional performance. We did ↵ | Sebastian Thiel | 2009-11-03 | 1 | -49/+45 |
| | | | | not implement the crazy sorting feature found in git-for-each-ref though | ||||
* | Reference.from_path now only creates references, not symbolic refs. ↵ | Sebastian Thiel | 2009-11-03 | 1 | -7/+21 |
| | | | | SymbolicReference.from_path creates only symbolic refs. This change was not detected by a test, hence there is room for improvement on the testing field | ||||
* | Now using git-update-ref and git-symbolic-ref to update references with ↵ | Sebastian Thiel | 2009-11-03 | 1 | -21/+17 |
| | | | | reflog support. This should be manually implemented though for more performance, what it does is relatively easy | ||||
* | object: renamed id attribute to sha as it in fact is always being rewritten ↵ | Sebastian Thiel | 2009-11-03 | 1 | -4/+4 |
| | | | | 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 Thiel | 2009-11-03 | 1 | -2/+2 |
| | | | | a convenient shortcut to using the classes manually | ||||
* | Intermediate commit with a few added and improved tests as well as many fixes | Sebastian Thiel | 2009-11-03 | 1 | -0/+3 |
| | |||||
* | renamed remote_branch to remote_head, improved errror message | Sebastian Thiel | 2009-10-27 | 1 | -3/+3 |
| | |||||
* | Reference._from_string will now create the appropriate type, not just the ↵ | Sebastian Thiel | 2009-10-27 | 1 | -1/+1 |
| | | | | type of the actual class. This could result in a symbolic reference returned even though you technically requested a reference - this issue must still be addressed. | ||||
* | put _make_file helper method into TestBase class | Sebastian Thiel | 2009-10-27 | 1 | -1/+3 |
| | | | | remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests | ||||
* | refs.SymoblicRef: implemented direcft setting of the symbolic references ↵ | Sebastian Thiel | 2009-10-26 | 1 | -3/+14 |
| | | | | commit, which possibly dereferences to the respective head | ||||
* | Refs can now set the reference they are pointing to in a controlled fashion ↵ | Sebastian Thiel | 2009-10-23 | 1 | -6/+42 |
| | | | | by writing their ref file directly | ||||
* | Added TagRefernce creation and deletion including tests | Sebastian Thiel | 2009-10-23 | 1 | -4/+17 |
| | | | | Added RemoteReference deletion and test | ||||
* | Implemented head methods: create, delete, rename, including tests | Sebastian Thiel | 2009-10-23 | 1 | -13/+21 |
| | |||||
* | refs: added create, delete and rename methods where appropriate. Tests are ↵ | Sebastian Thiel | 2009-10-23 | 1 | -2/+115 |
| | | | | marked, implementation is needed for most of them | ||||
* | Added frame for IndexFile add/remove/commit methods and respective test markers | Sebastian Thiel | 2009-10-23 | 1 | -1/+2 |
| | |||||
* | SymbolicReferences can now change they references safely as I think and well ↵ | Sebastian Thiel | 2009-10-23 | 1 | -6/+65 |
| | | | | | | controlled, including test. Added commit method which will return the commit for detached symbolic refs or for normal symbolic refs which is quite convenient | ||||
* | Adjusted tests to deal with API changes | Sebastian Thiel | 2009-10-22 | 1 | -4/+3 |
| | |||||
* | Added SymbolicReference and HEAD type to better represent these special ↵ | Sebastian Thiel | 2009-10-22 | 1 | -32/+137 |
| | | | | | | | | types of references and allow special handling Head.reset now is an instance method of HEAD type Concatenated all reference specific tests into test_refs started to fix tests breaking now because of changed interface | ||||
* | Added reset method to Head - its a class method due to the very general ↵ | Sebastian Thiel | 2009-10-22 | 1 | -0/+46 |
| | | | | nature of the command. Yet I don't really like the way you have to call it as repo has to be ṕassed as first arg | ||||
* | Implemneted IterableLists for refs, commits and remote objects including ↵ | Sebastian Thiel | 2009-10-19 | 1 | -0/+1 |
| | | | | simple tests | ||||
* | commit.count: is an instance method now | Sebastian Thiel | 2009-10-19 | 1 | -3/+3 |
| | | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically | ||||
* | Added remote module and test cases - about to implement remote option handling | Sebastian Thiel | 2009-10-19 | 1 | -0/+23 |
| | |||||
* | added initial frame for remote handling- remotes are somewhat related to ↵ | Sebastian Thiel | 2009-10-19 | 1 | -28/+18 |
| | | | | either parsing the command output or to reading the repo configuration which would be faster | ||||
* | Fixed object bug that would cause object ids not to be resolved to sha's as ↵ | Sebastian Thiel | 2009-10-16 | 1 | -1/+1 |
| | | | | | | 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 | ||||
* | Object can now create objects of the proper type in case one attempts to ↵ | Sebastian Thiel | 2009-10-15 | 1 | -2/+2 |
| | | | | create an object directly - this feature is used in several places now, allowing for additional type-checking | ||||
* | Added Commit.iter_parents to iterate all parents | Sebastian Thiel | 2009-10-15 | 1 | -3/+3 |
| | | | | | Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref ) | ||||
* | Refs are now truly dynamic - this costs a little bit of (persistent command) ↵ | Sebastian Thiel | 2009-10-14 | 1 | -14/+13 |
| | | | | work, but assures refs behave as expected | ||||
* | persistent command signature changed to also return the hexsha from a ↵ | Sebastian Thiel | 2009-10-14 | 1 | -5/+8 |
| | | | | possible input ref - the objects pointed to by refs are now baked on demand - perhaps it should change to always be re-retrieved using a property as it is relatively fast - this way refs can always be cached | ||||
* | test_blob: removed many redundant tests that would fail now as the mock ↵ | Sebastian Thiel | 2009-10-14 | 1 | -5/+12 |
| | | | | | | cannot handle the complexity of the command backend All objects but Tree now use the persistent command to read their object information - Trees get binary data and would need their own pretty-printing or they need to parse the data themselves which is my favorite | ||||
* | added Iterable interface to Ref type | Sebastian Thiel | 2009-10-13 | 1 | -12/+12 |
| | |||||
* | renamed find_all to list_all, changed commit to use iterable interface in ↵ | Sebastian Thiel | 2009-10-13 | 1 | -8/+8 |
| | | | | preparation for command changes | ||||
* | unified name of utils module, recently it was named util and utils in ↵ | Sebastian Thiel | 2009-10-13 | 1 | -1/+1 |
| | | | | different packages | ||||
* | refs now take repo as first argument and derive from LazyMixin to allow them ↵ | Sebastian Thiel | 2009-10-12 | 1 | -53/+41 |
| | | | | | | to dynamically retrieve their objects Improved way commits are returned by refs as they now use the path to be sure they always point to the ref even if it changes - previously it would use the sha intead so it would not update after being cached on the ref object | ||||
* | renamed from_string and list_from_string to _from_string and ↵ | Sebastian Thiel | 2009-10-12 | 1 | -4/+4 |
| | | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively |