mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
026bd9f950
Summary: Done by the fix-revnum.py script. Reviewed By: singhsrb Differential Revision: D24173575 fbshipit-source-id: e4cf417be759f9898adfd4102984098474ab38a2
32 lines
649 B
Perl
32 lines
649 B
Perl
#chg-compatible
|
|
|
|
#require execbit
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ echo a > a
|
|
$ hg ci -Am'not executable'
|
|
adding a
|
|
|
|
$ chmod +x a
|
|
$ hg ci -m'executable'
|
|
$ hg id
|
|
79abf14474dc
|
|
|
|
Make sure we notice the change of mode if the cached size == -1:
|
|
|
|
$ hg rm a
|
|
$ hg revert -r d69afc33ff8a77eda0ccb79374772831912446c3 a
|
|
$ hg debugstate
|
|
n 0 -1 unset a
|
|
$ hg status
|
|
M a
|
|
|
|
$ hg up d69afc33ff8a77eda0ccb79374772831912446c3
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg id
|
|
d69afc33ff8a
|
|
$ test -x a && echo executable -- bad || echo not executable -- good
|
|
not executable -- good
|
|
|