summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
Commit message (Collapse)AuthorAgeFilesLines
...
* refs: added create, delete and rename methods where appropriate. Tests are ↵Sebastian Thiel2009-10-231-2/+115
| | | | marked, implementation is needed for most of them
* Added frame for IndexFile add/remove/commit methods and respective test markersSebastian Thiel2009-10-231-1/+2
|
* SymbolicReferences can now change they references safely as I think and well ↵Sebastian Thiel2009-10-231-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 changesSebastian Thiel2009-10-221-4/+3
|
* Added SymbolicReference and HEAD type to better represent these special ↵Sebastian Thiel2009-10-221-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 Thiel2009-10-221-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 Thiel2009-10-191-0/+1
| | | | simple tests
* commit.count: is an instance method nowSebastian Thiel2009-10-191-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 handlingSebastian Thiel2009-10-191-0/+23
|
* added initial frame for remote handling- remotes are somewhat related to ↵Sebastian Thiel2009-10-191-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 Thiel2009-10-161-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 Thiel2009-10-151-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 parentsSebastian Thiel2009-10-151-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 Thiel2009-10-141-14/+13
| | | | work, but assures refs behave as expected
* persistent command signature changed to also return the hexsha from a ↵Sebastian Thiel2009-10-141-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 Thiel2009-10-141-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 typeSebastian Thiel2009-10-131-12/+12
|
* renamed find_all to list_all, changed commit to use iterable interface in ↵Sebastian Thiel2009-10-131-8/+8
| | | | preparation for command changes
* unified name of utils module, recently it was named util and utils in ↵Sebastian Thiel2009-10-131-1/+1
| | | | different packages
* refs now take repo as first argument and derive from LazyMixin to allow them ↵Sebastian Thiel2009-10-121-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 Thiel2009-10-121-4/+4
| | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively
* Reorganized package structure and cleaned up importsSebastian Thiel2009-10-121-0/+241