Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
45811:4404f129341e | 45812:976b26bdd0d8 |
---|---|
1866 (experimental.mergetempdirprefix version): | 1866 (experimental.mergetempdirprefix version): |
1867 | 1867 |
1868 $ hg update -q -C 1 | 1868 $ hg update -q -C 1 |
1869 $ hg mv f f.txt | 1869 $ hg mv f f.txt |
1870 $ hg ci -qm "f.txt" | 1870 $ hg ci -qm "f.txt" |
1871 warning: commit already existed in the repository! | |
1871 $ hg update -q -C 2 | 1872 $ hg update -q -C 2 |
1872 $ hg merge -y -r tip --tool echo \ | 1873 $ hg merge -y -r tip --tool echo \ |
1873 > --config merge-tools.echo.args='$base $local $other $output' \ | 1874 > --config merge-tools.echo.args='$base $local $other $output' \ |
1874 > --config experimental.mergetempdirprefix=$TESTTMP/hgmerge. | 1875 > --config experimental.mergetempdirprefix=$TESTTMP/hgmerge. |
1875 merging f and f.txt to f.txt | 1876 merging f and f.txt to f.txt |