tests/test-largefiles-update.t
branchstable
changeset 23090 24600c9d7f4e
parent 23089 197dc4580da2
child 23187 f726b05ecfe6
child 23383 7f8d27e1f862
--- a/tests/test-largefiles-update.t	Tue Oct 28 01:14:11 2014 +0900
+++ b/tests/test-largefiles-update.t	Tue Oct 28 01:14:12 2014 +0900
@@ -552,4 +552,31 @@
   R largeX
   $ hg status -A --rev '.^1' largeX
 
+#if execbit
+
+Test that "hg status" against revisions other than parent notices exec
+bit changes of largefiles.
+
+  $ hg update -q -C 4
+
+(the case that large2 doesn't have exec bit in the target context but
+in the working context)
+
+  $ chmod +x large2
+  $ hg status -A --rev 0 large2
+  M large2
+  $ hg commit -m 'chmod +x large2'
+
+(the case that large2 has exec bit in the target context but not in
+the working context)
+
+  $ echo dummy > dummy
+  $ hg add dummy
+  $ hg commit -m 'revision for separation'
+  $ chmod -x large2
+  $ hg status -A --rev '.^1' large2
+  M large2
+
+#endif
+
   $ cd ..