Mercurial > hg
diff tests/test-update-branches.t @ 48407:4d59e0f909e0
update: properly overwrite `check` config with `--no-` variants
Before this change `--merge` override `commands.update.check=abort/noconflict`,
and `--check` "override" `commands.update.check=none/linear`. However the
`--no-merge` and `--no-check` version where not doing anything.
The `--no-` two flags now behave properly.
Differential Revision: https://phab.mercurial-scm.org/D11851
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 03 Dec 2021 12:03:23 +0100 |
parents | 51f521900473 |
children | 74973a6d4e67 |
line wrap: on
line diff
--- a/tests/test-update-branches.t Fri Dec 03 12:19:36 2021 +0100 +++ b/tests/test-update-branches.t Fri Dec 03 12:03:23 2021 +0100 @@ -226,6 +226,11 @@ parent=2 M foo + $ revtest '--merge none dirty linear' dirty 1 2 --no-check + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + parent=2 + M foo + $ revtest 'none dirty linear' dirty 1 2 --clean 2 files updated, 0 files merged, 0 files removed, 0 files unresolved parent=2 @@ -247,6 +252,11 @@ parent=1 M foo + $ revtest 'none dirty linear' dirty 1 2 --no-merge + abort: uncommitted changes + parent=1 + M foo + $ revtest 'none dirty linear' dirty 1 2 --clean 2 files updated, 0 files merged, 0 files removed, 0 files unresolved parent=2