# HG changeset patch # User FUJIWARA Katsunori # Date 2013-04-29 20:01:32 # Node ID 370d9ea027b14e4375f25fe7d714fc1f434fcd53 # Parent 0176d0db46712bdd330bbe9f7db25b2595e99fae icasefs: refactor "test-casecollision-merge.t" to reuse in succeeding fixes This patch refactors "test-casecollision-merge.t" to increase reusability in succeeding patches. It is confirmed that changed test also can detect issue3370. diff --git a/tests/test-casecollision-merge.t b/tests/test-casecollision-merge.t --- a/tests/test-casecollision-merge.t +++ b/tests/test-casecollision-merge.t @@ -20,34 +20,23 @@ this is also case for issue3370. $ hg rename a tmp $ hg rename tmp A $ hg commit -m '#1' - $ hg update 0 - 1 files updated, 0 files merged, 1 files removed, 0 files unresolved - $ echo 'modified at #2' > a + $ hg update -q 0 + $ touch x + $ hg add x $ hg commit -m '#2' created new head - $ hg merge - merging a and A to A - 0 files updated, 1 files merged, 0 files removed, 0 files unresolved - (branch merge, don't forget to commit) + $ hg merge -q $ hg status -A M A - a R a - $ cat A - modified at #2 + C x - $ hg update --clean 1 - 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ hg merge - merging A and a to A - 0 files updated, 1 files merged, 0 files removed, 0 files unresolved - (branch merge, don't forget to commit) + $ hg update -q --clean 1 + $ hg merge -q $ hg status -A - M A - a - $ cat A - modified at #2 + M x + C A $ cd ..