mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +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.
37 lines
682 B
Perl
37 lines
682 B
Perl
$ "$TESTDIR/hghave" execbit || exit 80
|
|
|
|
$ rm -rf a
|
|
$ hg init a
|
|
$ cd a
|
|
|
|
$ echo foo > foo
|
|
$ hg ci -qAm0
|
|
$ chmod +x foo
|
|
$ hg ci -m1
|
|
$ hg co -q 0
|
|
$ echo dirty > foo
|
|
$ hg up -c
|
|
abort: uncommitted local changes
|
|
[255]
|
|
$ hg up -q
|
|
$ cat foo
|
|
dirty
|
|
$ hg st -A
|
|
M foo
|
|
|
|
Validate update of standalone execute bit change:
|
|
|
|
$ hg up -C 0
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ chmod -x foo
|
|
$ hg ci -m removeexec
|
|
nothing changed
|
|
[1]
|
|
$ hg up -C 0
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg up
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg st
|
|
|
|
$ cd ..
|