[PATCH 2 of 2] largefiles: add test case for status output on copy and rename

Na'Tosha Bard natosha at unity3d.com
Wed Nov 30 08:43:57 CST 2011


# HG changeset patch
# User Na'Tosha Bard <natosha at unity3d.com>
# Date 1322662281 -3600
# Node ID 82e1271340561c1e966eaf555deba80d7f5d083a
# Parent  0d44b1fe9ab6d2c98ff49e7ed2448286a64f631a
largefiles: add test case for status output on copy and rename

diff -r 0d44b1fe9ab6 -r 82e127134056 tests/test-largefiles.t
--- a/tests/test-largefiles.t	Wed Nov 30 15:11:00 2011 +0100
+++ b/tests/test-largefiles.t	Wed Nov 30 15:11:21 2011 +0100
@@ -53,10 +53,13 @@
   $ ls
   sub
 
-Copy both largefiles and normal files.
+Copy both largefiles and normal files (testing that status output is correct).
 
   $ hg cp sub/normal2 normal1
   $ hg cp sub/large2 large1
+  $ hg st
+  A large1
+  A normal1
   $ hg commit -m "copy files"
   $ cat normal1
   normal22
@@ -695,7 +698,22 @@
   large6-modified
   $ cat sub2/large7
   large7
-  $ cd ..
+
+Test that renaming a largefile results in correct output for status
+
+  $ hg rename sub/large4 large4-renamed
+  $ hg st
+  A large4-renamed
+  R sub/large4
+  $ hg commit -m "test rename output"
+  $ cat large4-renamed
+  large4-modified
+  $ cd sub2
+  $ hg rename large6 large6-renamed
+  $ hg st
+  A sub2/large6-renamed
+  R sub2/large6
+  $ cd ../..
 
 vanilla clients not locked out from largefiles servers on vanilla repos
   $ mkdir r1


More information about the Mercurial-devel mailing list