Mercurial > hg-stable
changeset 19106:3d0dd890c525 stable
icasefs: enhance test to prevent regression by changes in the future
This patch adds steps to test case-folding collision detection on the
revision tree built up in the order different from the one reproducing
issue3452.
This may prevent regression by changes around "copy detection" and/or
"case-folding collision detection" logic in the future.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 30 Apr 2013 05:01:32 +0900 |
parents | c60a7f5a741f |
children | fcf08023c011 |
files | tests/test-casecollision-merge.t |
diffstat | 1 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-casecollision-merge.t Tue Apr 30 05:01:32 2013 +0900 +++ b/tests/test-casecollision-merge.t Tue Apr 30 05:01:32 2013 +0900 @@ -16,6 +16,8 @@ $ echo a > a $ hg add a + $ echo b > b + $ hg add b $ hg commit -m '#0' $ hg tag -l A $ hg rename a tmp @@ -33,6 +35,7 @@ $ hg status -A M A R a + C b C x $ hg update -q --clean 1 @@ -40,6 +43,7 @@ $ hg status -A M x C A + C b $ hg commit -m '(D)' $ hg tag -l D @@ -64,6 +68,7 @@ $ hg update -q --clean C $ echo "modify 'a' at (E)" > a + $ echo "modify 'b' at (E)" > b $ hg commit -m '(E)' created new head $ hg tag -l E @@ -77,10 +82,45 @@ $ hg status -A M A a + M b C x $ cat A modify 'a' at (E) +test also the case that (B) is recorded after (C), to prevent +regression by changes in the future. + +to avoid unexpected (successful) behavior by filelog unification, +target file is not 'a'/'A' but 'b'/'B' in this case. + + $ hg update -q --clean A + $ hg rename b tmp + $ hg rename tmp B + $ hg commit -m '(B1)' + created new head + $ hg tag -l B1 + + $ hg merge -q C + $ hg status -A + M x + C B + C a + $ hg commit -m '(D1)' + $ hg tag -l D1 + + $ echo "modify 'B' at (F1)" > B + $ hg commit -m '(F1)' + $ hg tag -l F1 + + $ hg merge -q --tool internal:other E + $ hg status -A + M B + b + M a + C x + $ cat B + modify 'b' at (E) + $ cd .. (2) colliding file is not related to collided file