mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
fa1c4e5ebe
Many tests didn't change back from subdirectories at the end of the tests ... and they don't have to. The missing 'cd ..' could always be added when another test case is added to the test file. This change do that tests (99.5%) consistently end up in $TESTDIR where they started, thus making it simpler to extend them or move them around.
24 lines
336 B
Perl
24 lines
336 B
Perl
$ "$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'
|
|
|
|
reverting to rev 0
|
|
|
|
$ 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
|
|
|
|
$ cd ..
|