summaryrefslogtreecommitdiff
path: root/test/git
Commit message (Collapse)AuthorAgeFilesLines
...
* implemented diff tests, but will have to move the diff module as it needs to ↵Sebastian Thiel2009-10-181-0/+30
| | | | create objects, whose import would create a dependency cycle
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-173-191/+9
| | | | 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-162-0/+6
| | | | | | 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
* Object can now create objects of the proper type in case one attempts to ↵Sebastian Thiel2009-10-151-8/+0
| | | | 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-154-5/+13
| | | | | 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-152-9/+3
| | | | 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-154-9/+5
| | | | | | memory time imports cleaned up and mostly removed as they were not required (anymore)
* test_performance: module containing benchmarks to get an idea of the ↵Sebastian Thiel2009-10-152-16/+38
| | | | | | | achieved throughput repo.commits: max_count is None by default moved benchmark-like test from test_commit to test_performance
* Removed plenty of mocked tree tests as they cannot work anymore with ↵Sebastian Thiel2009-10-142-102/+4
| | | | | | persistent commands that require stdin AND binary data - not even an adapter would help here. These tests will have to be replaced. test_commit: Improved efficiency of traversal test
* tree: now reads tress directly by parsing the binary data, allowing it to ↵Sebastian Thiel2009-10-141-12/+1
| | | | safe possibly hundreds of command calls
* Refs are now truly dynamic - this costs a little bit of (persistent command) ↵Sebastian Thiel2009-10-141-3/+4
| | | | work, but assures refs behave as expected
* persistent command signature changed to also return the hexsha from a ↵Sebastian Thiel2009-10-141-2/+2
| | | | 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-144-54/+17
| | | | | | 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
* Implemented git command facility to keep persistent commands for fast object ↵Sebastian Thiel2009-10-141-2/+33
| | | | information retrieval
* test: Added time-consuming test which could also be a benchmark in fact - ↵Sebastian Thiel2009-10-141-0/+15
| | | | | | | 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-142-40/+10
| | | | | | | 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 )
* renamed find_all to list_all, changed commit to use iterable interface in ↵Sebastian Thiel2009-10-131-1/+1
| | | | 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
* tree: renamed content_from_string to _from_string to make it private. ↵Sebastian Thiel2009-10-131-27/+2
| | | | Removed tests that were testing that method
* tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel2009-10-122-27/+47
| | | | | | dict as cache is a problem as the tree is ordered, added blobs, trees and traverse method repo: remove blob function as blobs are created directly or iterated - primitve types should not clutter the repo interface
* test_base: Improved basic object creation as well as set hash testsSebastian Thiel2009-10-121-4/+6
|
* repo.active_branch now returns a Head object, not a stringSebastian Thiel2009-10-121-3/+2
|
* renamed from_string and list_from_string to _from_string and ↵Sebastian Thiel2009-10-125-13/+13
| | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively
* Reorganized package structure and cleaned up importsSebastian Thiel2009-10-124-34/+35
|
* Added remaining tests for new base classes and removed some methods whose ↵Sebastian Thiel2009-10-113-12/+42
| | | | existance was doubtful or unsafe
* Fixed remaining tests to deal with the changesSebastian Thiel2009-10-113-34/+46
| | | | mode is now generally an int compatible to the stat module
* commit: fixed failing commit tests as the mocked git command would always ↵Sebastian Thiel2009-10-112-56/+41
| | | | | | return the same thing which does not work anymore - re-implemented it in a more dynamic manner, but in the end tests will have to be revised anyway Added slots to Diff and Stats type respectively
* fixed issue in Ref.name implementation which would not handle components ↵Sebastian Thiel2009-10-112-12/+6
| | | | properly
* lazymixin system now supports per-attribute baking, it is up to the class ↵Sebastian Thiel2009-10-112-4/+1
| | | | whether it bakes more. This also leads to more efficient use of memory as values are only cached and set when required - the baking system does not require an own tracking variable anymore, and values are only to be cached once - then python will natively find the cache without involving any additional overhead. This works by using __getattr__ instead of __get_attribute__ which would always be called
* blob tests fixed to deal with changes to the Blob typeSebastian Thiel2009-10-111-3/+4
|
* converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel2009-10-1110-715/+715
| | | | editor to work with the files properly. Can convert it back for releaes
* Re-designed the tag testing - it does not use fixtures anymore but ↵Sebastian Thiel2009-10-112-23/+30
| | | | dyamically checks the existance of tags within the repository - it basically tests the interface and checks that expected return types are actually returned
* Intermediate commit: commit,tree and blob objects now derive from object - ↵Sebastian Thiel2009-10-111-0/+36
| | | | test is in place which still fails on purpose. Need to integrate tags which can be objects or just a special form of a ref
* Blob|Tree: renamed 'name' member to 'path', updated tests and changelog as ↵Sebastian Thiel2009-10-093-13/+13
| | | | it would make existing code incompatible in some places
* Merge branch 'doc_enhancements' into fixesSebastian Thiel2009-10-081-2/+2
|\
| * improved repo documentationSebastian Thiel2009-10-081-2/+2
| |
* | repo_tests: fixed duplicate test-method name which would redefine the ↵Sebastian Thiel2009-10-081-69/+3
| | | | | | | | | | | | | | previous one which never ran removed old tests which were commented out test_achive* method didn't actually call the functions, but only derefenced them
* | Fixed Diff class which used Commits instead of Blobs - as Blobs contain the ↵Sebastian Thiel2009-10-081-26/+29
| | | | | | | | | | | | path ( in the 'name' member variable ), the a|b_path members of Diff have been removed. Tests were adjusted and run Diff docs have been updated to provide a little more information on specifics cases
* | Fixed git.blob.Blob.blame function which would return the text-per-commit as ↵Sebastian Thiel2009-10-081-0/+8
| | | | | | | | individual characters
* | Merge commit 'JonNordby/master' into integrationSebastian Thiel2009-10-071-0/+7
|\ \ | | | | | | | | | | | | * commit 'JonNordby/master': implemented equality operations on Commit objects
| * | implemented equality operations on Commit objectsJon Nordby2009-06-281-0/+7
| |/
* | Fix unittests for Mock 0.5.0Paul J. Davis2009-09-142-8/+8
|/
* Lots of spring cleaning and added in Sphinx documentation.Michael Trier2009-01-2412-12/+12
|
* fixed Commit.stats retrieval for parentless commits in bare reposMichael Trier2008-12-161-3/+3
| | | | (cherry picked from commit 88852ed7bcde4f4b18c1ae8b6fba7f3fab8e9bf5)
* Fixed a bug with branch names omitting path components.Michael Trier2008-12-161-0/+9
| | | | | | | | | Git allows branches to be named and organized using path components, e.g using a branch called "refactoring/feature1", which gets stored under refs/heads/refactoring/feature1. The previous code omitted everything but the last path component giving the name "feature1" instead of "refactoring/feature1" for the branch. This changeset fixes that. (cherry picked from commit dc4738bc53e580754e47037e26c7eec3047aeb69)
* Added in new properties Diff.renamed, Diff.rename_from, and Diff.rename_toMichael Trier2008-12-152-9/+38
|
* Make message the full message and add a summary propertyPaul Sowden2008-12-151-1/+1
| | | | | Adds a summary property to the Commit object which returns just the first line of the commit message and makes the message property contain the entire commit message (previously the message property only contained the first line of the commit message). This breaks backwards compatibility a little in that the message property now contains a different value but previously there was no way to access the entire commit message from the Commit object and this is in keeping with git vocabulary, where message generally refers to the entire commit message. (cherry picked from commit 9d2962d8306c894d4cca55bab551677b92d96352)