summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-171-150/+0
| | | | is missing - these tests have to be redone in test-diff module accordingly
* Added Commit.iter_parents to iterate all parentsSebastian Thiel2009-10-151-0/+10
| | | | | 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-0/+3
| | | | obsolete once the interface overhaul is finished. This commit is just intermediate
* test_performance: module containing benchmarks to get an idea of the ↵Sebastian Thiel2009-10-151-16/+0
| | | | | | | 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-141-2/+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
* test_blob: removed many redundant tests that would fail now as the mock ↵Sebastian Thiel2009-10-141-1/+1
| | | | | | 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-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-141-20/+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 )
* renamed find_all to list_all, changed commit to use iterable interface in ↵Sebastian Thiel2009-10-131-1/+1
| | | | preparation for command changes
* renamed from_string and list_from_string to _from_string and ↵Sebastian Thiel2009-10-121-1/+1
| | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively
* Added remaining tests for new base classes and removed some methods whose ↵Sebastian Thiel2009-10-111-4/+0
| | | | existance was doubtful or unsafe
* Fixed remaining tests to deal with the changesSebastian Thiel2009-10-111-31/+43
| | | | 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-111-46/+36
| | | | | | 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
* lazymixin system now supports per-attribute baking, it is up to the class ↵Sebastian Thiel2009-10-111-3/+0
| | | | 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
* converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel2009-10-111-197/+197
| | | | editor to work with the files properly. Can convert it back for releaes
* Blob|Tree: renamed 'name' member to 'path', updated tests and changelog as ↵Sebastian Thiel2009-10-091-10/+10
| | | | it would make existing code incompatible in some places
* 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
* implemented equality operations on Commit objectsJon Nordby2009-06-281-0/+7
|
* Lots of spring cleaning and added in Sphinx documentation.Michael Trier2009-01-241-1/+1
|
* fixed Commit.stats retrieval for parentless commits in bare reposMichael Trier2008-12-161-3/+3
| | | | (cherry picked from commit 88852ed7bcde4f4b18c1ae8b6fba7f3fab8e9bf5)
* Added in new properties Diff.renamed, Diff.rename_from, and Diff.rename_toMichael Trier2008-12-151-8/+25
|
* implement a far far faster diff parserPaul Sowden2008-12-151-1/+1
| | | | | The old diff parser in list_from_string took a large amount of time to parse long diffs, on one of my repositories it took over 3 minutes to parse the initial commit. The new parser uses a single regexp to match the header of a diff, and iterates over the each individual diff by splitting the entire string by the diff seperator, attempting to match the header for each individual diff. With the new parser parsing the same repository is almost instant, woohoo! (cherry picked from commit 5b6b27f153bdc30380bea12a528ef483571dd57a)
* add a path parameter to most commit methodsPaul Sowden2008-12-151-1/+1
| | | | | The path parameter allows you to specify a path to constrain queries by. This changes potentially breaks backwards compatibility for the Repo.commits and Repo.commits_since methods as it moves the positional arguments. (cherry picked from commit cc8a20e78da4864060bd0c9279633009bc10d871)
* remove ambiguity between paths and treeishsPaul Sowden2008-12-151-2/+2
| | | | | When calling commands that accept treeish and path arguments and there is a path with the same name as a treeish git cowardly refuses to pick one and asks for the command to use the unambiguous syntax where '--' seperates the treeish from the paths. Add '--' to the git commands to indicate that the argument is a treeish and not a path. (cherry picked from commit a9a57fa93a2b121ab9b17fcd6062b9a9c9740883)
* Get compatible with mock0.4 (to some extend ;)). Just that MichaelFlorian Apolloner2008-12-151-12/+12
| | | | | doesn't need to do the same boring replacing I did. (cherry picked from commit 10c62aa69193a8bc7b46ca24c2ad1d5008489665)
* Replace GitPython with git in repr() outputs.Steve Frécinaux2008-09-171-1/+1
| | | | | The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something.
* test_commit: add a testcase for parsing rev-list --bisect-all outputDavid Aguilar2008-09-021-0/+26
| | | | | | | This adds a testcase for Commit.list_from_string to ensure that it can properly parse the output of git rev-list --bisect-all. Signed-off-by: David Aguilar <davvid@gmail.com>
* Removed method_missing since it was only used in one place.Michael Trier2008-07-171-11/+11
|
* Added license information to all files.Michael Trier2008-07-161-0/+6
|
* fixed the tests, which where broken before my commit, although the bug ↵Florian Apolloner2008-06-201-50/+50
| | | | didn't reveal it...
* renamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed ↵Michael Trier2008-05-301-1/+1
| | | | up tests so they pass except for stderr test. Modified version information retrieval.
* Moved test stuff around and modified imports to just clean things up a bit.Michael Trier2008-05-071-3/+1
|
* cleaned up a bunch of imports for the tests.Michael Trier2008-05-071-3/+3
|
* initial projectMichael Trier2008-05-071-0/+191