diff --git a/tests/test-revert-flags.out b/tests/test-revert-flags.out deleted file mode 100644 --- a/tests/test-revert-flags.out +++ /dev/null @@ -1,6 +0,0 @@ -% reverting to rev 0 -reverting foo -M foo -diff --git a/foo b/foo -old mode 100755 -new mode 100644 diff --git a/tests/test-revert-flags b/tests/test-revert-flags.t old mode 100755 new mode 100644 rename from tests/test-revert-flags rename to tests/test-revert-flags.t --- a/tests/test-revert-flags +++ b/tests/test-revert-flags.t @@ -1,17 +1,21 @@ -#!/bin/sh + $ "$TESTDIR/hghave" execbit || exit 80 -"$TESTDIR/hghave" execbit || exit 80 + $ hg init repo + $ cd repo + $ echo foo > foo + $ chmod 644 foo + $ hg ci -qAm '644' + + $ chmod 755 foo + $ hg ci -qAm '755' -hg init repo -cd repo -echo foo > foo -chmod 644 foo -hg ci -qAm '644' +reverting to rev 0 -chmod 755 foo -hg ci -qAm '755' - -echo '% reverting to rev 0' -hg revert -a -r 0 -hg st -hg diff --git + $ hg revert -a -r 0 + reverting foo + $ hg st + M foo + $ hg diff --git + diff --git a/foo b/foo + old mode 100755 + new mode 100644