summaryrefslogtreecommitdiff
path: root/tests-clar/revwalk
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-144-748/+0
|
* merge: reverse array and length parameter orderCarlos Martín Nieto2013-09-221-2/+2
| | | | Make it pair up with the one for commits. This fixes #1691.
* Fix cleanup issues with new testsRussell Belfer2013-09-171-1/+5
|
* revwalk: allow simplifying by first-parentCarlos Martín Nieto2013-09-091-0/+51
| | | | | When enabled, only the first parent of each commit will be queued, enabling a simple way of using first-parent simplification.
* Add long-file-name branch to test repoBen Straub2013-08-071-1/+1
|
* Update init and clean for revwalk::basic testsRussell Belfer2013-07-221-12/+38
| | | | | The new tests don't always want to use the same fixture data as the old ones so this makes it configurable on a per-test basis.
* git_reference_next_name must match git_reference_nextRussell Belfer2013-07-221-0/+22
| | | | | | | | | | The git_reference_next API silently skips invalid references when scanning the loose refs. The git_reference_next_name API should skip the same ones even though it isn't creating the reference object. This adds a test with a an invalid loose reference and makes sure that both APIs skip the same entries and generate the same results.
* Add a test case.Arthur Schreiber2013-06-251-0/+12
|
* revwalk: Parse revision rangesGreg Price2013-04-061-0/+12
| | | | | | All the hard work is already in revparse. Signed-off-by: Greg Price <price@mit.edu>
* revwalk: refactor tests a bitGreg Price2013-03-311-7/+11
| | | | Signed-off-by: Greg Price <price@mit.edu>
* revwalk tests: better diagram of example repoGreg Price2013-03-311-7/+6
| | | | | | | | | | | The purported command output was already inaccurate, as the refs aren't where it shows. In any event, the labels a reader of this file really needs are the indices used in commit_sorting_*, to make it possible to understand them by referring directly from those arrays to the diagram rather than from the index arrays, to commit_ids, to the diagram. Add those. Signed-off-by: Greg Price <price@mit.edu>
* Simplify signature parsingVicent Marti2013-02-201-2/+2
|
* Fix MSVC compilation warningsnulltoken2013-01-111-18/+18
|
* Merge pull request #1131 from libgit2/correct-ahead-behindVicent Martí2013-01-051-4/+3
|\ | | | | Fix an issue with ahead-behind for lopsided traversal
| * Fix no_common_ancestor test for ahead_behind countScott J. Goldman2012-12-091-4/+3
| | | | | | | | | | | | Ahead-behind count is still a valid operation, even if the two commits don't have a common merge-base. The old implementation was buggy, so it returned ENOTFOUND. Fixed now.
* | revwalk-test: Don't leak the second repositorySascha Cunz2012-12-191-0/+3
|/
* Fixup ahead/behind testsScott J. Goldman2012-11-291-14/+19
| | | | | Fix a typo that caused a failing test, and use cl_assert_equal instead of cl_assert.
* Fix function name and add real error checkRussell Belfer2012-11-291-1/+1
| | | | | | | `revwalk.h:commit_lookup()` -> `git_revwalk__commit_lookup()` and make `git_commit_list_parse()` do real error checking that the item in the list is an actual commit object. Also fixed an apparent typo in a test name.
* Rename git_count_ahead_behind -> git_graph_ahead_behindScott J. Goldman2012-11-281-13/+13
| | | | | | Moved it into graph.{c,h} which i created for the new "graph" functions namespace. Also adjusted the function prototype to use `size_t` and `const git_oid *`.
* Add the ahead/behind test that Carlos suggestedScott J. Goldman2012-11-281-1/+117
| | | | | Adds a repo with a more complex topology to test the ahead-behind count.
* Add tests for ahead-behind countScott J. Goldman2012-11-281-0/+33
|
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-2/+2
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-233-0/+6
| | | | | | | | | | | | Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
* revwalk: fix off-by-one errorMichael Schubert2012-09-271-0/+9
| | | | Fixes #921.
* revwalk: refuse push of non-commit objectsMichael Schubert2012-08-271-0/+8
| | | | | Check the type of the pushed object immediately instead of starting the walk and failing in between.
* revwalk: relax the parsing of the commit timenulltoken2012-07-111-0/+44
|
* tests: add test commit with angle brackets in the author namenulltoken2012-07-111-2/+2
|
* clar: Fix warningsVicent Marti2012-06-191-0/+1
|
* merge: Expose git_merge_base_many()nulltoken2012-06-071-0/+66
|
* merge: cleanup testsnulltoken2012-06-071-13/+12
|
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-1/+1
|
* errors: Rename the generic return codesVicent Martí2012-05-182-7/+7
|
* mergebase: enhance test code coveragenulltoken2012-05-131-0/+111
|
* revwalk: add test hiding a commit without a merge baseCarlos Martín Nieto2012-04-121-0/+16
| | | | | Nothing should be hidden and this shouldn't bother the merge base calculation.
* Implement git_merge_base()Carlos Martín Nieto2012-04-121-0/+37
| | | | | | It's implemented in revwalk.c so it has access to the revision walker's commit cache and related functions. The algorithm is the one used by git, modified so it fits better with the library's functions.
* revwalk: allow pushing/hiding a reference by nameCarlos Martín Nieto2012-04-121-3/+2
| | | | | | The code was already there, so factor it out and let users push an OID by giving it a reference name. Only refs to commits are supported. Annotated tags will throw an error.
* Simple test for pushing HEAD and hiding a branchCarlos Martín Nieto2012-02-271-0/+17
|
* revwalk: add convenience function to push/hide HEADCarlos Martín Nieto2012-02-271-0/+15
| | | | | | It's not unusual to want the walker to act on HEAD, so add a convencience function for the case that the user doesn't already have a resolved HEAD reference.
* Add revwalk glob testCarlos Martín Nieto2012-02-271-0/+15
|
* Move revwalk test to clarCarlos Martín Nieto2012-02-271-0/+119