diff tests/test-merge-tools.t @ 45812:976b26bdd0d8

commit: warn the user when a commit already exists Sometimes, a commit will result in an exact match of a preexisting commit, and if that commit isn't a branch head, hg will incorrectly note that it created a new head. Instead, we should warn the user that commit already existed in the repository. In practice, this bug is rather uncommon, and will only occur when the usr explicitly sets the date. Please note that this commit contains an API change to cmdutil.commitstatus() Differential Revision: https://phab.mercurial-scm.org/D9257
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Thu, 29 Oct 2020 13:54:25 +0100
parents 8caec25f5d8f
children 3ca5ca380a34
line wrap: on
line diff
--- a/tests/test-merge-tools.t	Tue Oct 06 13:34:51 2020 +0200
+++ b/tests/test-merge-tools.t	Thu Oct 29 13:54:25 2020 +0100
@@ -1868,6 +1868,7 @@
   $ hg update -q -C 1
   $ hg mv f f.txt
   $ hg ci -qm "f.txt"
+  warning: commit already existed in the repository!
   $ hg update -q -C 2
   $ hg merge -y -r tip --tool echo \
   >    --config merge-tools.echo.args='$base $local $other $output' \