# HG changeset patch # User Vadim Gelfer # Date 1146368368 25200 # Node ID 1e82f2337498c767316fe7c819497749c2382e8b # Parent 628bf85f07ee4751ee75a75bca3d88d563a228ec make test-revert check executable bit. diff -r 628bf85f07ee -r 1e82f2337498 tests/test-revert --- 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 diff -r 628bf85f07ee -r 1e82f2337498 tests/test-revert.out --- a/tests/test-revert.out Fri Apr 28 15:50:56 2006 -0700 +++ b/tests/test-revert.out Sat Apr 29 20:39:28 2006 -0700 @@ -45,3 +45,9 @@ forgetting a %% should silently add a A a +reverting c +%% should print non-executable +non-executable +reverting c +%% should print executable +executable