# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1528462968 -19800 # Node ID 25dfa95c37fdb85ff5c56cd26881022ec71e432e # Parent 3343c5491b316fbadef90747a96e0bd8155dacf1 next-prev: add tests showing --merge not respected in some cases This patch adds tests which show that --merge is not respected when you set commands.update.check to any value. This is a bug I wrote few days ago and will fix it in next changeset. I like this process of writing bugs and fixing them. diff -r 3343c5491b31 -r 25dfa95c37fd tests/test-prev-next.t --- a/tests/test-prev-next.t Tue Jun 05 03:36:40 2018 +0200 +++ b/tests/test-prev-next.t Fri Jun 08 18:32:48 2018 +0530 @@ -439,3 +439,33 @@ abort: conflicting changes (do you want --merge?) [255] + +Test that --merge still works fine with commands.update.check set + +XXX: yes we want --merge and we passed that! + $ echo hi > bar + $ echo bar >> bar + $ hg next --merge + abort: conflicting changes + (do you want --merge?) + [255] + +Testing --merge works with other values of commands.update.check also + +XXX: things are broken! + $ hg prev --merge --config commands.update.check=abort + abort: uncommitted changes + (do you want --merge?) + [255] + + $ hg revert --all + forgetting bar + reverting wat + + $ echo bar > bar + $ hg add bar + + $ hg next --merge --config commands.update.check=abort + abort: uncommitted changes + (do you want --merge?) + [255]