largefiles: test that a largefile cannot accidentally be re-added as a regular file stable
authorNa'Tosha Bard <natosha@unity3d.com>
Fri, 28 Oct 2011 18:17:44 +0200
branchstable
changeset 15382 b59e6b1e0c95
parent 15381 c519cd8f0169
child 15383 155d0f8fb7e5
largefiles: test that a largefile cannot accidentally be re-added as a regular file
tests/test-largefiles.t
--- 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