tests/test-status.t
branchstable
changeset 15848 012b285cf643
parent 14155 921683f14ad7
child 15869 e5feebc1f3bb
--- a/tests/test-status.t	Wed Jan 11 09:26:47 2012 -0600
+++ b/tests/test-status.t	Thu Jan 12 00:49:45 2012 +0900
@@ -272,3 +272,26 @@
     modified
   R removed
   C deleted
+
+  $ cd ..
+
+hg status of binary file starting with '\1\n', a separator for metadata:
+
+  $ hg init repo5
+  $ cd repo5
+  $ printf '\1\nfoo' > 010a
+  $ hg ci -q -A -m 'initial checkin'
+  $ hg status -A
+  C 010a
+
+  $ printf '\1\nbar' > 010a
+  $ hg status -A
+  M 010a
+  $ hg ci -q -m 'modify 010a'
+  $ hg status -A --rev 0:1
+  M 010a
+
+  $ touch empty
+  $ hg ci -q -A -m 'add another file'
+  $ hg status -A --rev 1:2 010a
+  C 010a