Commit Briefs

5f94a4e005 Omar Polo

regress: consistently use ed -s

didn't know about -s when writing those tests; saves some output redirection. ok jamsek


b2b3fce13e Omar Polo

respect umask when creating or changing files and directories

This behaviour is already documented in got-worktree(5) but wasn't actually implemented. ok stsp@


598eac4331 Stefan Sperling

reset committer during rebase and histedit

ok op@


97f28afb98 Omar Polo

regress: add missing return in error path


f1e5aff40c Omar Polo

histedit: make sure mesg is only used after pick or edit

It doesn't really make sense to use mesg after a fold or drop, or after another mesg. it currently "works" as intended, but the behaviour is confusing and not useful, better abort the operation as it's probably not what the user intended. Suggested by and ok stsp@


49c543a6fe Christian Weisgerber

use test(1) -eq and -ne to compare integers, and reduce quoting

This brings the rest of the regression test scripts in line with patch.sh.



09209b8a13 Stefan Sperling

add test for merge result when lines are inserted at the top of a file

Based on a patch by Omar Polo


41f061b2f4 Stefan Sperling

ignore unversioned files while aborting rebase, histedit, merge or operations

ok jrick


b93c7142c1 Stefan Sperling

add histedit -e option which runs the 'edit' script command for every commit

ok jrick


ad324bf53a Stefan Sperling

fix histedit_no_op test which was failing randomly

A no-op replayed history ends up having exactly the same commit IDs if all commits are created at roughly the same moment in time. There are no content changes involved so if commit timestamps do not differ then commit hashes will be the same. In which case there is no fork in history for 'got histedit -l' to display, yet the test was always expecting a fork in history to be displayed. Update the test to take this issue into account. The test will now pass no matter which result is produced by the histedit operation. Problem found by Lucas who observed that this test was randomly failing. Patch also provided by Lucas.




a966211500 Christian Weisgerber

add missing "return 1" to failure handling in the regress scripts

ok stsp@


643b85bcb4 Stefan Sperling

new -X option for removing backups created by got rebase and got histedit

ok semarie


e600f1246e Stefan Sperling

ensure that old commits remain referenced after rebase and histedit

Create automatic "backup" references which ensure that objects from the pre-rebase or pre-histedit state remain in the repository. A new -l option for 'got rebase' and 'got histedit' lists old commits. This makes it easier to recover from botched rebase or histedit operations. Removal of such objects currently requires got ref -d and git-gc. This will be made more convenient in the future. testing and ok jrick



a615e0e779 Stefan Sperling

implicitly mark all files in work tree as up-to-date after rebase/histedit

This should always be correct, since rebase and histedit start out with a clean and single-base-commit worktree, and end up committing all changes across the entire work tree when they are successful. tested by jrick and myself


a347e6bb7c Stefan Sperling

test behaviour of histedit -f with an empty log message


239f5c5ae4 Stefan Sperling

add a basic test case for histedit -f



0a22ca1a5a Stefan Sperling

make 'got histedit' collapse folded add+delete operations into a no-op

If a merged commit wants to delete a locally added file, and this locally added file matches the content which was deleted in the commit being merged, we can go ahead with the deletion because there is no risk of data loss. fixes the histedit problem reported by jrick on freenode


ecfff807e1 Stefan Sperling

add an xfail test for a histedit issue where a deleted file remains

If a previous commit introduces a new file, and it is folded into a commit that deletes the same file, the file still exists after the histedit. reported by jrick on freenode


f6cae3ed1e Christian Weisgerber

switch function declarations from Korn shell to Bourne/POSIX shell syntax

ok stsp


7fb414ae4d Stefan Sperling

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