tests-clar


Log

Author Commit Date CI Message
Vicent Martí 74f880a6 2013-01-06T07:56:08 Merge pull request #1197 from nulltoken/travis/run-online-tests travis: Include the online suite when running against Travis
nulltoken b97fabfa 2013-01-06T15:18:00 tests: Fix some memory leaks
Vicent Martí d74b1bc5 2013-01-05T15:44:19 Merge pull request #1131 from libgit2/correct-ahead-behind Fix an issue with ahead-behind for lopsided traversal
Russell Belfer 2f089539 2013-01-04T17:17:37 Actually fix win32 checkout test It turns out that using REMOVE_UNTRACKED with checkout for this particular test was causing the .gitattributes file to be removed and so we do have to allow for the CRs in the created file...
Russell Belfer bebdbcd4 2013-01-04T16:56:21 Fix crlf issue with checkout tests Move some checkout utility functions into a shared file and fix some crlf filtering issues when verifying file contents.
Russell Belfer 817d6251 2013-01-03T16:56:27 Fix checkout of index-only dirs and prefixed paths There are a couple of checkout bugs fixed here. One is with untracked working directory entries that are prefixes of tree entries but not in a meaningful way (i.e. "read" is a prefix of "readme.txt" but doesn't interfere in any way). The second bug is actually a redo of 07edfa0fc640f85f95507c3101e77accd7d2bf0d where directory entries in the index that are not in the diff were not being removed correctly. That fix remedied one case but broke another.
Russell Belfer 7fc00435 2013-01-03T15:48:52 Add index API to remove all files in a directory This adds the git_index_remove_directory API plus tests.
Russell Belfer d8889d2b 2013-01-03T14:08:53 Fix checkout bug rmv untracked trees from index When checking out with the GIT_CHECKOUT_REMOVE_UNTRACKED option and there was an entire tree in the working directory and in the index that is not in the baseline nor target commit, the tree was correctly(?) removed from the working directory but was not successfully removed from the index. This fixes that and adds a test of the functionality.
Russell Belfer 0d70f650 2013-01-03T10:51:18 Fixing checkout UPDATE_ONLY and adding tests This adds a bunch of new checkout tests and in the process I found a bug in the GIT_CHECKOUT_UPDATE_ONLY flag which I fixed.
Russell Belfer b3fb9237 2013-01-02T17:12:45 Clone should use GIT_CHECKOUT_SAFE_CREATE For clone to work as expected, it should be using a SAFE_CREATE checkout (i.e. create files that are missing, even if the target tree matches the current HEAD).
Russell Belfer c50c58de 2013-01-02T17:10:56 Extend tests for checkout with typechanges Test a number of other cases, including intentionally forced conflicts and deeper inspection that trees get created properly. There is a still a bug in checkout because the first test here (i.e. test_checkout_typechange__checkout_typechanges_safe) should be able to pass with GIT_CHECKOUT_SAFE as a strategy, but it will not because of some lingering submodule checkout issues.
Russell Belfer a6a82e1a 2012-12-19T15:06:40 Improve error propagation in stash Stash was sometimes obscuring the actual error code, replacing it with a -1 when there was more descriptive value. This updates stash to preserve the original error code more reliably along with a variety of other error handling tweaks. I believe this is an improvement, but arguably, preserving the underlying error code may result in values that are harder to interpret by the caller who does not understand the internals. Discussion is welcome!
Russell Belfer 8fe713cc 2012-12-19T15:06:14 Make git_oid_tostr use out buffer for NULL oid Previously a NULL oid was handled like an empty buffer and returned a status empty string. This makes git_oid_tostr() set the output buffer to the empty string instead.
Russell Belfer 5cf9875a 2012-12-18T15:19:24 Add index updating to checkout Make checkout update entries in the index for all files that are updated and/or removed, unless flag GIT_CHECKOUT_DONT_UPDATE_INDEX is given. To do this, iterators were extended to allow a little more introspection into the index being iterated over, etc.
Russell Belfer 7e5c8a5b 2012-12-10T15:31:43 More checkout improvements This flips checkout back to be driven off the changes between the baseline and the target trees. This reinstates the complex code for tracking the contents of the working directory, but overall, I think the resulting logic is easier to follow.
Russell Belfer cf208031 2012-12-06T13:36:17 Rework checkout internals (again) I've tried to map out the detailed behaviors of checkout and make sure that we're handling the various cases correctly, along with providing options to allow us to emulate "git checkout" and "git checkout-index" with the various flags. I've thrown away flags in the checkout API that seemed like clutter and added some new ones. Also, I've converted the conflict callback to a general notification callback so we can emulate "git checkout" output and display "dirty" files. As of this commit, the new behavior is not working 100% but some of that is probably baked into tests that are not testing the right thing. This is a decent snapshot point, I think, along the way to getting the update done.
Jameson Miller c5df10f4 2012-11-30T10:59:03 Failing test on git_checkout_tree when removing directories
Marvin Gülker d0951175 2012-12-06T16:12:21 Add failing test to demonstrate wrong checkout behaviour
Russell Belfer e9e20c84 2012-12-19T14:52:12 Update cl_git_pass to return more info This adds a failure reporting function that is called by cl_git_pass which captures the actual error return code and the error message if available in the failure report.
Vicent Marti 60406162 2013-01-04T20:28:33 clar: lolpython
Vicent Marti 3a4a961d 2013-01-04T20:25:10 clar: Corrupted pickles
Vicent Martí c18a5ec5 2013-01-04T11:10:39 Merge pull request #1174 from nulltoken/topic/soft_reset_with_index_conflicts Prevent soft reset when index contains conflicts
Carlos Martín Nieto 702c3bf7 2013-01-04T19:01:36 clar: make it compatible with python3
Vicent Marti 1d5d4186 2013-01-04T20:02:01 clar: haha
Vicent Marti 73b58c91 2013-01-04T20:00:09 clar: fix warning on Windows
nulltoken 9a0d5904 2012-12-27T13:42:27 reset: Cannot soft reset with a conflicted index
Vicent Martí 52ee071b 2013-01-04T09:33:54 Merge pull request #1189 from martinwoodward/tests-compliance Add jGit license block to derrived tests
Martin Woodward ba1a430a 2013-01-04T17:29:45 Add jGit license block to derrived tests Add the jGit license block to tests derrived from jGit as per the terms of the BSD license.
Vicent Marti a7ffd936 2013-01-04T17:46:38 clar: fix merge/setup.c
Congyi Wu d73d52df 2013-01-03T13:26:11 Fix bug in gen_pktline() for deletes of missing remote refs * gen_pktline() in smart_protocol.c was skipping refspecs that deleted refs that were not advertised by the server. The new behavior is to send a delete command with an old-id of zero, which matches the behavior of the official git client. * Update test_network_push__delete() in reaction to above fix. * Obviate messy logic that handles missing push_spec rrefs by canonicalizing push_spec. After calculate_work(), loid, roid, and rref, are filled in with exactly what is sent to the server
Nikolai Vladimirov b60b4562 2013-01-03T16:31:36 add option to allow git note overwrite
Edward Thomson 5a62d659 2013-01-03T12:44:09 MERGE_HEAD contents iterator
Vicent Martí 686a243a 2013-01-04T08:36:13 Merge pull request #1184 from ethomson/mergehead_iterator MERGE_HEAD contents iterator
Edward Thomson 42e50b5e 2013-01-03T12:44:09 MERGE_HEAD contents iterator
Congyi Wu 4128f5aa 2013-01-03T13:26:11 Fix bug in gen_pktline() for deletes of missing remote refs * gen_pktline() in smart_protocol.c was skipping refspecs that deleted refs that were not advertised by the server. The new behavior is to send a delete command with an old-id of zero, which matches the behavior of the official git client. * Update test_network_push__delete() in reaction to above fix. * Obviate messy logic that handles missing push_spec rrefs by canonicalizing push_spec. After calculate_work(), loid, roid, and rref, are filled in with exactly what is sent to the server
Russell Belfer b8a1ea7c 2013-01-03T11:04:03 Fix core::env cleanup code Mark fake home directories that failed to be created, so we won't try to remove them and have cleanup just use p_rmdir.
Vicent Marti 54254a0f 2013-01-03T19:38:29 Status tests...
Vicent Marti 7b51d675 2013-01-03T19:17:07 Even more cleanups
Vicent Marti f6fded8f 2013-01-03T19:07:41 Proper cleanup jeez
Ben Straub 600d8dbf 2013-01-03T09:10:38 Move test cleanup into cleanup functions
Ben Straub bffbeebb 2013-01-03T08:38:00 Cleanup after tests
Ben Straub 6fef1ab3 2013-01-03T07:47:51 Tests should clean up after themselves
Nikolai Vladimirov 8716b499 2013-01-03T16:31:36 add option to allow git note overwrite
Vicent Marti 7761ce21 2013-01-03T04:24:12 Merge branch 'development' into clar2 Conflicts: tests-clar/clone/nonetwork.c tests-clar/online/clone.c tests-clar/online/fetchhead.c
Vicent Marti 2e6f06a8 2013-01-03T02:34:45 ...and add Clar raw
Vicent Marti 8ee7174b 2013-01-03T02:22:42 Remove the clar submodule
Vicent Marti f46769e5 2013-01-03T02:13:37 Fix network suite
Vicent Marti 6443eaf2 2013-01-03T00:50:29 Disable Network suite by default
Ben Straub 922dd978 2013-01-02T13:54:37 Move some clone tests to the nonetwork suite
Vicent Martí cd5ca5b9 2013-01-02T13:50:41 Merge pull request #1152 from ben/clone-api-structification Segregate in-memory and persisted remotes
Ben Straub 730df6d0 2013-01-02T13:43:54 Include checkout options inline
Vicent Marti 39cd0177 2013-01-02T22:38:10 This is a better name
Ben Straub 0642c143 2013-01-02T12:44:47 Move `url` to last place in parameter list
Vicent Marti 5c2d3f6d 2013-01-02T04:17:31 Add build dependency for clar. Also, fuck you CMake. Fuck you.
Vicent Marti b0a45829 2012-12-19T01:10:13 Bump the Clar submodule
Vicent Marti 156cfec0 2012-12-19T00:12:26 Cleanup Clar to make it SIMPLER
nulltoken 50a762a5 2012-12-26T12:03:07 path: Teach UNC paths to git_path_dirname_r() Fix libgit2/libgit2sharp#256
nulltoken 34b6f05f 2012-12-26T11:59:07 path: enhance git_path_dirname_r() test coverage
nulltoken 19c3c99c 2012-12-24T17:16:41 remote: remove duplicated test
nulltoken f19304d2 2012-12-24T15:59:01 remote: Prevent create() from blindly overwriting
nulltoken b0aa14aa 2012-12-24T15:27:42 remote: Enhance in-memory remote test coverage
nulltoken 6bd09ecc 2012-12-24T15:51:10 Fix MSSVC compilation issue
Ben Straub 2808ec9a 2012-12-21T13:15:37 Rename test to make @nulltoken happy
Ben Straub 79000951 2012-12-21T08:05:59 In-memory remotes don't have names
Ben Straub 874dcb25 2012-12-20T11:49:05 Remote: deprecate dangling, prevent saving in-memory
Ben Straub 29f27599 2012-12-20T10:51:09 Rename remote creation APIs git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
Ben Straub 621b50e4 2012-12-19T16:51:37 Clone: trust but verify
Ben Straub b412d563 2012-12-18T19:46:05 Add more clone options. Push test suite segfaults.
Edward Thomson 7fcec834 2012-12-11T22:31:21 fetchhead reading/iterating
Sascha Cunz d5cf4665 2012-12-19T08:04:31 Fix some leaks and (possibly) dangling pointers in tests Also adds some asserts.
Sascha Cunz 96a289f5 2012-12-19T05:24:23 clone-empty-test: Don't use one pointer for two things ... so we can clean up correctly.
Sascha Cunz 3dc0207b 2012-12-19T05:21:11 revwalk-test: Don't leak the second repository
Sascha Cunz 26290cd1 2012-12-18T19:52:37 Reset global variable to NULL after free'ing resource
Vicent Martí e62171e2 2012-12-17T11:10:25 Merge pull request #1151 from arrbee/fix-diff-constructor-names Fix diff constructor names
Russell Belfer 56c72b75 2012-12-17T11:00:53 Fix diff constructor name order confusion The diff constructor functions had some confusing names, where the "old" side of the diff was coming after the "new" side. This reverses the order in the function name to make it less confusing. Specifically... * git_diff_index_to_tree becomes git_diff_tree_to_index * git_diff_workdir_to_index becomes git_diff_index_to_workdir * git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
Vicent Martí 0d10e79d 2012-12-17T10:13:36 Merge pull request #1149 from nulltoken/topic/blob_isbinary Introduce git_blob_is_binary()
nulltoken a3337f10 2012-12-17T15:15:20 blob: introduce git_blob_is_binary()
Sascha Cunz 22d23c61 2012-12-17T17:15:58 Cleanup the test correctly
Ben Straub c4e3e797 2012-12-16T12:27:11 Ensure static variables are nulled after every test
Ben Straub a7f125cd 2012-12-15T14:56:20 Fix fetchhead tests
Ben Straub 57f5d8dc 2012-12-14T14:15:42 Remove placeholder files during tests
Ben Straub 1164acde 2012-12-14T14:00:35 Rebase fixup
Ben Straub 850b1edf 2012-12-13T12:55:28 Allow clone to handle empty repos
Ben Straub b9e7e2b4 2012-12-14T13:46:45 Move non-options back out of options struct
Ben Straub 18b2d560 2012-12-14T13:03:59 Deploy git_clone_options; remove git_clone_bare
Vicent Marti 2d466b7d 2012-12-14T02:49:11 tests: Fix unused temp repo
Vicent Marti 509216a5 2012-12-14T02:49:01 test: Fix clone tests
Vicent Marti b0b9fd32 2012-12-14T02:41:53 Merge remote-tracking branch 'origin/clone-auth' into development
Jameson Miller 8a8820d8 2012-12-13T17:58:12 Add test to clone with absolute path
Ben Straub 24393ea6 2012-12-13T09:14:56 Stop premature remote freeing when cloning
Ben Straub 7c353afd 2012-12-13T08:47:29 Define constant for default fetch spec
Ben Straub 44f36f6e 2012-12-12T19:48:44 Convert clone to use dangling remotes
Ben Straub b914e17d 2012-12-12T12:23:24 API to set a dangling remote's repository
Ben Straub a71c27cc 2012-12-12T12:15:25 Allow creation of dangling remotes
Russell Belfer 91e7d263 2012-12-10T15:29:44 Fix iterator reset and add reset ranges The `git_iterator_reset` command has not been working in all cases particularly when there is a start and end range. This fixes it and adds tests for it, and also extends it with the ability to update the start/end range strings when an iterator is reset.
Russell Belfer 9950d27a 2012-12-06T13:26:58 Clean up iterator APIs This removes the need to explicitly pass the repo into iterators where the repo is implied by the other parameters. This moves the repo to be owned by the parent struct. Also, this has some iterator related updates to the internal diff API to lay the groundwork for checkout improvements.
Ben Straub 59bccf33 2012-12-10T11:11:01 Add a payload param to git_cred_acquire_cb Fixes #1128.
Ben Straub 72629a10 2012-12-10T10:05:31 Clean up GCC build warnings
Scott J. Goldman b337814e 2012-12-09T21:04:32 Fix no_common_ancestor test for ahead_behind count 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.
Carlos Martín Nieto f1c75b94 2012-12-07T15:16:41 tree: relax the filemode parser There are many different broken filemodes in the wild so we need to protect against them and give something useful up the chain. Don't fail when reading a tree from the ODB but normalize the mode as best we can. As 664 is no longer a mode that we consider to be valid and gets normalized to 644, we can stop accepting it in the treebuilder. The library won't expose it to the user, so any invalid modes are a bug.