summaryrefslogtreecommitdiff
path: root/tests-clar/odb
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-1412-1629/+0
|
* move mode_t to filebuf_open instead of _commitEdward Thomson2013-11-041-2/+2
|
* Allow backend consumers to specify file modeEdward Thomson2013-11-041-0/+52
|
* odb: Error when streaming in too [few|many] bytesnulltoken2013-09-071-0/+56
|
* revparse: Prevent unnecessary odb backend callsnulltoken2013-09-071-0/+13
|
* Fix some newer GCC compiler warningsRussell Belfer2013-09-051-2/+2
|
* Merge pull request #1817 from libgit2/ntk/fix/backend/honor_refresh_capabilitiesVicent Martí2013-09-041-0/+261
|\ | | | | Of backends and refreshers...
| * odb: Honor the non refreshing capability of a backendnulltoken2013-08-301-0/+261
| |
* | Define S_IREAD i S_IWRITE for Android.Krzysztof Adamski2013-09-011-0/+5
|/
* odb: free object data when id is ambiguousCarlos Martín Nieto2013-08-121-0/+1
| | | | | By the time we recognise this as an ambiguous id, the object's data has been loaded into memory. Free it when returning EABMIGUOUS.
* odb_pack: handle duplicate objects from different packsBrodie Rao2013-08-081-0/+3
| | | | | | | This is based on 24634c6fd02b2240e4a93fad70a08220f8fb793a. This also corrects an issue with error codes being mixed up with the number of found objects.
* More tests for ambiguous OIDs across packsRussell Belfer2013-08-051-0/+64
| | | | | | | The test coverage for ambiguous OIDs was pretty thin. This adds a bunch of new objects both in packs, across packs, and loose that match to 8 characters so that we can test various cases of ambiguous lookups.
* Reorganize diff and add basic diff driverRussell Belfer2013-06-101-1/+1
| | | | | | | | | | | | | | | | | | This is a significant reorganization of the diff code to break it into a set of more clearly distinct files and to document the new organization. Hopefully this will make the diff code easier to understand and to extend. This adds a new `git_diff_driver` object that looks of diff driver information from the attributes and the config so that things like function content in diff headers can be provided. The full driver spec is not implemented in the commit - this is focused on the reorganization of the code and putting the driver hooks in place. This also removes a few #includes from src/repository.h that were overbroad, but as a result required extra #includes in a variety of places since including src/repository.h no longer results in pulling in the whole world.
* What has science done.Vicent Marti2013-04-223-7/+12
|
* Move odb_backend implementors stuff into git2/sysRussell Belfer2013-04-212-11/+10
| | | | | | | | | | | | This moves some of the odb_backend stuff that is related to the internals of an odb_backend implementation into include/git2/sys. Some of the stuff related to streaming I left in include/git2 because it seemed like it would be reasonably needed by a normal user who wanted to stream objects into and out of the ODB. Also, I added APIs for traversing the list of backends so that some of the tests would not need to access ODB internals.
* tag: Fix parsing when no tagger nor messagenulltoken2013-03-311-3/+3
|
* Even more cleanupsVicent Marti2013-01-031-2/+2
|
* Tests should clean up after themselvesBen Straub2013-01-031-0/+5
|
* Deploy versioned git_odb_backend structureBen Straub2012-11-301-2/+2
|
* Make git_odb_foreach_cb take const paramRussell Belfer2012-11-271-2/+2
| | | | | This makes the first OID param of the ODB callback a const pointer and also propogates that change all the way to the backends.
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-233-0/+3
| | | | | | | | | | | | 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
* odb: recursively load alternatesCarlos Martín Nieto2012-11-161-0/+75
| | | | The maximum depth is 5, like in git
* revwalk: fix off-by-one errorMichael Schubert2012-09-271-1/+1
| | | | Fixes #921.
* test: Open ODB on each test suiteVicent Marti2012-08-061-0/+6
|
* Merge remote-tracking branch 'arrbee/tree-walk-fixes' into developmentVicent Marti2012-08-061-0/+17
|\ | | | | | | | | | | | | | | | | Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
| * Update iterators for consistency across libraryRussell Belfer2012-08-031-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
* | Merge pull request #833 from carlosmn/odb-oneVicent Martí2012-07-313-6/+94
|\ \ | | | | | | odb: allow creating an ODB backend from a packfile index
| * | odb: allow creating an ODB backend from a packfile indexCarlos Martín Nieto2012-07-213-6/+94
| |/ | | | | | | | | git_odb_backend_one_packfile() allows us to create an ODB backend out of an .idx file.
* | odb: add some documentation to the foreach() testnulltoken2012-07-251-1/+11
|/
* tests: fix git_odb_foreach() object countCarlos Martín Nieto2012-07-121-1/+1
| | | | Some objects were added in another PR
* odb: add git_odb_foreach()Carlos Martín Nieto2012-07-031-0/+36
| | | | | Go through each backend and list every objects that exists in them. This allows fsck-like uses.
* clar: Fix warningVicent Martí2012-05-161-1/+0
|
* Handle duplicate objects from different backends in git_odb_read_prefix().Han-Wen Nienhuys2012-05-121-0/+25
|
* Rename the Clay test suite to ClarVicent Martí2012-01-245-0/+906
Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!