summaryrefslogtreecommitdiff
path: root/lib/git/objects/commit.py
Commit message (Collapse)AuthorAgeFilesLines
* actor: added __eq__, __ne__ and __hash__ methods including simple testSebastian Thiel2009-10-241-15/+25
| | | | commit: Fixed long-standing issue during message parsing that would fail to parse properly in case we were created from data. Also it would strip white space from the messages although it shouldn't
* 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-10/+3
| | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
* resolved cyclic inclusion issue by moving the Diffable interface into the ↵Sebastian Thiel2009-10-181-1/+1
| | | | diff module, which probably is the right thing to do anyway
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-171-0/+1
| | | | is missing - these tests have to be redone in test-diff module accordingly
* added Diffable interface to objects.base, its used by Commit and Tree objects.Sebastian Thiel2009-10-161-55/+1
| | | | Diff class has been prepared to process raw input, but its not yet more than a frame
* repo.commit_delta_base: removedSebastian Thiel2009-10-151-75/+78
|
* Added Commit.iter_parents to iterate all parentsSebastian Thiel2009-10-151-10/+32
| | | | | Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref )
* repo: removed a few methods because of redundancy or because it will be ↵Sebastian Thiel2009-10-151-10/+12
| | | | obsolete once the interface overhaul is finished. This commit is just intermediate
* All times are not stored as time_struct, but as simple int to consume less ↵Sebastian Thiel2009-10-151-22/+9
| | | | | | memory time imports cleaned up and mostly removed as they were not required (anymore)
* test_blob: removed many redundant tests that would fail now as the mock ↵Sebastian Thiel2009-10-141-4/+10
| | | | | | 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
* test: Added time-consuming test which could also be a benchmark in fact - ↵Sebastian Thiel2009-10-141-2/+2
| | | | | | | currently it cause hundreds of command invocations which is slow Fixed issue with trees not properly initialized with their default mode _set_cache_: some objects checked whether the attribute was within their __slots__ although it should have been accessed through its class
* cmd: added option to return the process directly, allowing to read the ↵Sebastian Thiel2009-10-141-6/+8
| | | | | | | output directly from the output stream commit: now reads commit information directly from the output stream of the process by implementing its iterator method repo: removed log method as it was redundant ( equal to the commits method )
* added Iterable interface to Ref typeSebastian Thiel2009-10-131-1/+1
|
* renamed find_all to list_all, changed commit to use iterable interface in ↵Sebastian Thiel2009-10-131-32/+39
| | | | preparation for command changes
* refs now take repo as first argument and derive from LazyMixin to allow them ↵Sebastian Thiel2009-10-121-1/+1
| | | | | | 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-6/+6
| | | | _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/+284