changeset 15382:b59e6b1e0c95 stable

largefiles: test that a largefile cannot accidentally be re-added as a regular file
author Na'Tosha Bard <natosha@unity3d.com>
date Fri, 28 Oct 2011 18:17:44 +0200
parents c519cd8f0169
children 155d0f8fb7e5
files tests/test-largefiles.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-largefiles.t	Sat Oct 29 11:02:23 2011 -0500
+++ b/tests/test-largefiles.t	Fri Oct 28 18:17:44 2011 +0200
@@ -732,6 +732,14 @@
   large6-modified
   $ cat sub2/large7
   large7
+
+Test that a normal file and a largefile with the same name and path cannot
+coexist.
+
+  $ rm sub2/large7
+  $ echo "largeasnormal" > sub2/large7
+  $ hg add sub2/large7
+  sub2/large7 already a largefile
   $ cd ..
 
 vanilla clients not locked out from largefiles servers on vanilla repos