Mercurial > hg
view tests/test-casecollision.t @ 16001:fcf66193b186 stable
merge: defer symlink flag merging to filemerge (issue3200)
Previously, we could change a normal file into a corrupt symlink when
trying to merge a symlink flag. Now, we leave the flag alone and let
filemerge deal with it (usually by a prompt).
We also drop a redundant flag setting after filemerge (now dealt with
by ms.resolve) that would cause similar corruption.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jan 2012 20:34:57 -0600 |
parents | 524c560e2d32 |
children | 14e44933d175 |
line wrap: on
line source
run only on case-sensitive filesystems $ "$TESTDIR/hghave" no-icasefs || exit 80 test file addition with colliding case $ hg init repo1 $ cd repo1 $ echo a > a $ echo A > A $ hg add a $ hg st A a ? A $ hg add --config ui.portablefilenames=abort A abort: possible case-folding collision for A [255] $ hg st A a ? A $ hg add A warning: possible case-folding collision for A $ hg st A A A a $ hg forget A $ hg st A a ? A $ hg add --config ui.portablefilenames=no A $ hg st A A A a case changing rename must not warn or abort $ echo c > c $ hg ci -qAmx $ hg mv c C $ cd ..