Patchwork [1,of,2] tests: add commits to test-casecollision.t

login
register
mail settings
Submitter Gregory Szorc
Date Aug. 18, 2016, 5:28 a.m.
Message ID <04ba5f1f6c28674ed2df.1471498129@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/16345/
State Changes Requested
Headers show

Comments

Gregory Szorc - Aug. 18, 2016, 5:28 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1471495316 25200
#      Wed Aug 17 21:41:56 2016 -0700
# Node ID 04ba5f1f6c28674ed2df750a8acca02021b2698c
# Parent  997e8cf4d0a29d28759e38659736cb3d1cf9ef3f
tests: add commits to test-casecollision.t

This demonstrates that we don't alert when committing a case collision.

Patch

diff --git a/tests/test-casecollision.t b/tests/test-casecollision.t
--- a/tests/test-casecollision.t
+++ b/tests/test-casecollision.t
@@ -24,46 +24,65 @@  test file addition with colliding case
   $ hg forget A
   $ hg st
   A a
   ? A
   $ hg add --config ui.portablefilenames=no A
   $ hg st
   A A
   A a
+  $ hg commit -m 'add A a'
+
   $ mkdir b
   $ touch b/c b/D
   $ hg add b
   adding b/D
   adding b/c
+  $ hg commit -m 'add b/c b/D'
+
   $ touch b/d b/C
   $ hg add b/C
   warning: possible case-folding collision for b/C
   $ hg add b/d
   warning: possible case-folding collision for b/d
+  $ hg commit -m 'add b/C b/d'
+
   $ touch b/a1 b/a2
   $ hg add b
   adding b/a1
   adding b/a2
+  $ hg commit -m 'add b/a1 b/a2'
+
   $ touch b/A2 b/a1.1
   $ hg add b/a1.1 b/A2
   warning: possible case-folding collision for b/A2
+  $ hg commit -m 'add b/A2 b/a1.1'
+
   $ touch b/f b/F
   $ hg add b/f b/F
   warning: possible case-folding collision for b/f
+  $ hg commit -m 'add b/f b/F'
+
   $ touch g G
   $ hg add g G
   warning: possible case-folding collision for g
+  $ hg commit -m 'add g G'
+
   $ mkdir h H
   $ touch h/x H/x
   $ hg add h/x H/x
   warning: possible case-folding collision for h/x
+  $ hg commit -m 'add h/x H/x'
+
   $ touch h/s H/s
   $ hg add h/s
   $ hg add H/s
   warning: possible case-folding collision for H/s
+  $ hg commit -m 'add h/s H/s'
 
 case changing rename must not warn or abort
 
   $ echo c > c
   $ hg ci -qAmx
   $ hg mv c C
+  $ hg commit -m 'mv c C'
+
   $ cd ..