summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
Commit message (Collapse)AuthorAgeFilesLines
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-273/+0
|
* Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel2010-11-151-1/+1
| | | | was mainly copy-paste from with_rw_repo, what a shame
* Added unicode handling for author names. They will now be properly encoded ↵Sebastian Thiel2010-10-151-0/+29
| | | | into the byte stream, as well as decoded from it
* Added test to verify the actor type can handle and parse unicode if it is ↵Sebastian Thiel2010-10-151-0/+9
| | | | | | passed in test_odb: added more information to the message output
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-17/+18
|
* Removed odb from project, it is now used as a submodule named gitdb, which ↵Sebastian Thiel2010-06-121-1/+1
| | | | | | was added instead Adjusted all imports to deal with the changed package names
* Fixed implementation after design change to deal with it - all tests run, ↵Sebastian Thiel2010-06-041-3/+9
| | | | but next there will have to be more through testing
* initial version of new odb design to facilitate a channel based ↵Sebastian Thiel2010-06-041-2/+2
| | | | multi-threading implementation of all odb functions
* commit.create_from_tree now uses pure python implementation, fixed message ↵Sebastian Thiel2010-06-031-2/+57
| | | | | | parsing which truncated newlines although it was ilegitimate. Its up to the reader to truncate therse, nowhere in the git code I could find anyone adding newlines to commits where it is written Added performance tests for serialization, it does about 5k commits per second if writing to tmpfs
* commit: redesigned revlist and commit parsing, commits are always retrieved ↵Sebastian Thiel2010-06-021-157/+153
| | | | | | from their object information directly. This is faster, and resolves issues with the rev-list format and empty commit messages Adjusted many tests to go with the changes, as they were still mocked. The mock was removed if necessary and replaced by code that actually executes
* commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel2010-06-021-1/+1
| | | | | | | performance is slightly better git.cmd: added method to provide access to the content stream directly. This is more efficient if large objects are handled, if it is actually used test.helpers: removed unnecessary code
* Added additional tz_offset testing in performance test to call it more often.Sebastian Thiel2010-04-301-1/+1
| | | | Fixed test which required to be on master to work - it now uses the HEAD symbolic ref instead.
* Add support for time zone information in tags and commits.Rick Copeland2010-04-271-0/+3
| | | | | | | This commit includes - an update to git.objects.utils:parse_actor_and_date to parse the timezone offset - updates to the git.objects.Commit and git.objects.Tag objects to support *_tz_offset attributes - updates to tests in test.git.test_commit and test.git.test_refs to check for appropriate *_tz_offset attributes
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-152/+152
|
* Commit.iter_items: Will not restrict comits to the ones containing changes ↵Sebastian Thiel2010-02-281-0/+18
| | | | | | to paths anymore as it will only append '--' if paths are actually given. Added unittest to verify this
* git.commit: Added test to assure we handle the first commit correctly ↵Sebastian Thiel2010-02-181-0/+5
| | | | regarding its parents
* Traversable.traverse: Added as_edge option allowing to receive the source of ↵Sebastian Thiel2009-11-271-2/+3
| | | | the item as well to enable predicates to do more proper checking
* Fixed issue with commit traversal due to missing visit_once in the traversal ↵Sebastian Thiel2009-11-271-2/+2
| | | | method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive
* Added test that gets into a commit traversal loopSebastian Thiel2009-11-271-3/+16
|
* ItemTraversal: Predicate and prune functions now provide depth information, ↵Sebastian Thiel2009-11-271-2/+2
| | | | allowing the callee to know more about its environment
* objects.utils: Added Traversable base and implemented it for commits ↵Sebastian Thiel2009-11-261-0/+26
| | | | including a test
* test_commit: commit.count actually returned incorrect values on linux, ↵Sebastian Thiel2009-11-051-1/+1
| | | | namely 141 instead of 143. Manual checking showed that 143 is the correct number, on linux this will have to be fixed
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-8/+8
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* Merge branch 'index' into improvementsSebastian Thiel2009-10-261-1/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * index: index.add: Finished implemenation including through tests When parsing trees, we now store the originan type bits as well, previously we dropped it cmd.wait: AutoKill wrapped process will automatically raise on errors to unify error handling amongst clients using the process directly. It might be needed to add a flag allowing to easily override that added head kwarg to reset and commit method, allowing to automatically change the head to the given commit, which makes the methods more versatile refs.SymoblicRef: implemented direcft setting of the symbolic references commit, which possibly dereferences to the respective head index.commit: implemented initial version, but in fact some more changes are required to have a nice API. Tests are not yet fully done either actor: added __eq__, __ne__ and __hash__ methods including simple test index.remove implemented including throrough test Implemented index.reset method including test IndexEntry is now based on a 'minimal' version that is suitable to be fed into UpdateIndex. The Inode and device information is only needed to quickly compare the index against the working tree for changes, hence it should not be that dominant in the API either. More changes to come Added notes about git-update-ref Refs can now set the reference they are pointing to in a controlled fashion by writing their ref file directly Added TagRefernce creation and deletion including tests Implemented head methods: create, delete, rename, including tests refs: added create, delete and rename methods where appropriate. Tests are marked, implementation is needed for most of them Added frame for IndexFile add/remove/commit methods and respective test markers Added repo.index property including simple test, and additional ideas in the TODO list Renamed Index to IndexFile, adjusted tests, it will only operate on physical files, not on streams, as Indices are not streamed by any git command ( at least not in raw format )
| * actor: added __eq__, __ne__ and __hash__ methods including simple testSebastian Thiel2009-10-241-1/+12
| | | | | | | | 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
* | commit.name_rev property added for convenienceSebastian Thiel2009-10-231-0/+4
|/
* Added SymbolicReference and HEAD type to better represent these special ↵Sebastian Thiel2009-10-221-1/+1
| | | | | | | | 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
* Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel2009-10-221-15/+13
| | | | appropriate
* Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel2009-10-191-0/+3
| | | | simple tests
* commit.count: is an instance method nowSebastian Thiel2009-10-191-1/+1
| | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
* 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)