Mercurial > hg
comparison tests/test-execute-bit.t @ 12190:9231c629ec10
tests: unify test-execute-bit
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 03 Sep 2010 09:46:17 +0200 |
parents | tests/test-execute-bit@23ffe82615d8 |
children | 44bda93df90e |
comparison
equal
deleted
inserted
replaced
12189:fb0c6373ec36 | 12190:9231c629ec10 |
---|---|
1 $ "$TESTDIR/hghave" execbit || exit 80 | |
2 | |
3 $ hg init | |
4 $ echo a > a | |
5 $ hg ci -Am'not executable' | |
6 adding a | |
7 | |
8 $ chmod +x a | |
9 $ hg ci -m'executable' | |
10 $ hg id | |
11 79abf14474dc tip | |
12 | |
13 Make sure we notice the change of mode if the cached size == -1: | |
14 | |
15 $ hg rm a | |
16 $ hg revert -r 0 a | |
17 $ hg debugstate | |
18 n 0 -1 unset a | |
19 $ hg status | |
20 M a | |
21 | |
22 $ hg up 0 | |
23 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
24 $ hg id | |
25 d69afc33ff8a | |
26 $ test -x a && echo executable -- bad || echo not executable -- good | |
27 not executable -- good | |
28 |