diff tests/test-revert @ 2157:1e82f2337498

make test-revert check executable bit.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Sat, 29 Apr 2006 20:39:28 -0700
parents 968f036f93a4
children e9a0ed9ed4d9
line wrap: on
line diff
--- a/tests/test-revert	Fri Apr 28 15:50:56 2006 -0700
+++ b/tests/test-revert	Sat Apr 29 20:39:28 2006 -0700
@@ -54,4 +54,18 @@
 hg revert -r0 a
 hg st a
 
+hg update -C
+chmod +x c
+hg revert
+echo %% should print non-executable
+test -x c || echo non-executable
+
+chmod +x c
+hg commit -d '1000001 0' -m exe
+
+chmod -x c
+hg revert
+echo %% should print executable
+test -x c && echo executable
+
 true