tests/test-largefiles-update.t
changeset 23394 b5e2128ce9e6
parent 23276 4be754832829
parent 23383 7f8d27e1f862
child 23517 4f18e80d9c30
--- a/tests/test-largefiles-update.t	Tue Nov 25 02:31:52 2014 -0600
+++ b/tests/test-largefiles-update.t	Tue Nov 25 17:30:05 2014 -0600
@@ -608,6 +608,31 @@
   $ hg status -A --rev '.^1' large2
   M large2
 
+#else
+
+Test that "hg status" against revisions other than parent ignores exec
+bit correctly on the platform being unaware of it.
+
+  $ hg update -q -C 4
+
+  $ cat > exec-bit.patch <<EOF
+  > # HG changeset patch
+  > # User test
+  > # Date 0 0
+  > #      Thu Jan 01 00:00:00 1970 +0000
+  > # Node ID be1b433a65b12b27b5519d92213e14f7e1769b90
+  > # Parent  07d6153b5c04313efb75deec9ba577de7faeb727
+  > chmod +x large2
+  > 
+  > diff --git a/.hglf/large2 b/.hglf/large2
+  > old mode 100644
+  > new mode 100755
+  > EOF
+  $ hg import --exact --bypass exec-bit.patch
+  applying exec-bit.patch
+  $ hg status -A --rev tip large2
+  C large2
+
 #endif
 
   $ cd ..