tests/test-record
changeset 7718 6fa7b6fb90a9
parent 5154 67afecb8d6cc
child 8811 8b35b08724eb
--- a/tests/test-record	Sun Jan 25 20:27:37 2009 +0100
+++ b/tests/test-record	Tue Jan 27 09:58:48 2009 -0600
@@ -264,3 +264,35 @@
 f
 EOF
 echo; hg tip -p
+
+echo % preserve chmod +x
+
+chmod +x f1
+echo a >> f1
+hg record -d '20 0' -mz <<EOF
+y
+y
+y
+EOF
+echo; hg tip --config diff.git=True -p
+
+echo % preserve execute permission on original
+
+echo b >> f1
+hg record -d '21 0' -maa <<EOF
+y
+y
+y
+EOF
+echo; hg tip --config diff.git=True -p
+
+echo % preserve chmod -x
+
+chmod -x f1
+echo c >> f1
+hg record -d '22 0' -mab <<EOF
+y
+y
+y
+EOF
+echo; hg tip --config diff.git=True -p