regress/cmdline/revert.sh


Log

Author Commit Date CI Message
Christian Weisgerber f6cae3ed 2020-09-13T14:05:17 switch function declarations from Korn shell to Bourne/POSIX shell syntax ok stsp
Stefan Sperling 7fb414ae 2020-08-08T07:34:47 add a -q option to tests for quiet output and use it for 'make regress' Previous default output remains when test cases are run individually. ok tracey
Stefan Sperling c2677d5d 2020-07-23T14:22:40 fix missing return statements in revert.sh symlink test failure cases
Stefan Sperling cf0e59fe 2020-07-23T14:22:40 fix wrong test result check in revert.sh symlink test
Stefan Sperling 369fd7e5 2020-07-23T14:22:38 add support for symlinks to 'got revert -p'
Stefan Sperling 4901ccfc 2020-07-23T14:22:35 add a test for 'got revert' with symlinks
Tracey Emery 15341bfd 2020-03-05T14:39:37 trim directories in got remove -R This is a racy solution that needs to be properly implemented in the future. ok stsp
Stefan Sperling a46b9f33 2020-01-28T12:09:03 fix a bug where 'got revert -R' failed on added subtrees The command could fail with "got: no such entry found in tree". This problem is reproduced by the regression test added in this commit. This happened because file index entries were processed in the wrong order by diff_fileindex_dir(). To fix this, keep removed entries in the RB tree and skip them when the file index is written out, rather than removing entries from the RB tree immediately causing side-effects for RB_NEXT and friends.
Stefan Sperling fb9704af 2020-01-27T17:07:01 do not display unversioned files during 'got revert -R'
Stefan Sperling 6a5eff7c 2019-11-23T10:00:27 trim trailing whitespace in revert.sh (patch by Tracey Emery)
Stefan Sperling 0b2899f8 2019-08-18T11:26:15 attribute commits created with git(1) in test suite to Flan Hacker
Sebastien Marie 3d69ad8d 2019-08-17T15:28:04 make 'got revert' to ignore unversioned files instead of aborting with 'bad path' and add a regress to check the revert isn't aborted anymore
Stefan Sperling 6c6b73bb 2019-08-10T17:24:59 fix race condition in test_revert_patch_one_change
Stefan Sperling f1e81a05 2019-08-10T16:57:20 fix bug where 'revert -p' would delete all lines following a reverted change
Stefan Sperling ce2b05c7 2019-08-10T16:12:32 test reverting the first hunk only with revert -p
Stefan Sperling 33aa809d 2019-08-08T18:17:04 implement 'revert -p'
Stefan Sperling 0f6d7415 2019-08-08T17:21:07 implement got revert -R
Stefan Sperling 1f1abb7e 2019-08-08T16:39:07 implement revert with a status walk to prepare for 'revert -p'
Stefan Sperling a9fa2909 2019-07-27T21:51:52 fix 'got revert' on files in newly added subdirectories
Stefan Sperling e20a8b6f 2019-06-04T16:35:01 allow multiple file path arguments for 'got revert'
Stefan Sperling 5e54fb30 2019-05-31T14:57:57 test and fix 'got revert' with a path in a sub-directory Relax input path requirements of got_object_id_by_path() to make things easier to callers. Allows the revert code to pass a path from the file index in lieu of a repository path.
Stefan Sperling 8d301dd9 2019-05-14T11:35:15 use cmp -s, instead of cmp, in all command line tests
Stefan Sperling a129376b 2019-03-29T00:04:52 add initial implementation of 'got revert'