[PATCH 1 of 3] largefiles: test that a largefile cannot accidentally be re-added as a regular file

Na'Tosha Bard natosha at unity3d.com
Fri Oct 28 11:54:08 CDT 2011


# HG changeset patch
# User Na'Tosha Bard <natosha at unity3d.com>
# Date 1319818664 -7200
# Node ID c16217607b25c58856f49bbd12479c76720e763e
# Parent  872f06c342ffa01f414cb57506090faaff410cd4
largefiles: test that a largefile cannot accidentally be re-added as a regular file

diff -r 872f06c342ff -r c16217607b25 tests/test-largefiles.t
--- a/tests/test-largefiles.t	Wed Oct 26 22:35:15 2011 +0200
+++ b/tests/test-largefiles.t	Fri Oct 28 18:17:44 2011 +0200
@@ -443,3 +443,11 @@
   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


More information about the Mercurial-devel mailing list