Open DimitriyKh opened 1 month ago
This behavior was changed in 7388a13, in response to #828. I could see an argument to add an option to disable it when using --log-only
. Is that something you could work on, @DimitriyKh?
The https://github.com/sqitchers/sqitch/issues/828 looks quite reasonable since it needs to calculate hash at least. But for revert with --log-only that's probably overkill, so disabling the check for this case is good option.
Previous versions of sqitch ignore absent revert scripts when revert --log-only was issued. Now it's failing (see logs below). This behaviour was usefull when on development changes are reconsidered or moved between scripts or/and branches.
Now I need to either touch revert/script.sql and them remove them or dance with checkout between branches to run verify-revert-deploy or rebase commands. I think since log-only not suppose to actually run script, it's ok to ignore missing files.