##// END OF EJS Templates
add a fix for issue 1175...
add a fix for issue 1175 If we copy a file followed by an update, it's possible for the parent manifest to no longer contain the source file of the copy, which could cause commit to fail. If this happens, we search backwares from the first parent to find the most likely original revision.

File last commit:

r6158:23ffe826 default
r6875:0d714a48 default
Show More
test-execute-bit
21 lines | 334 B | text/plain | TextLexer
Bryan O'Sullivan
See if execute bit is honoured when we go back in time
r5490 #!/bin/sh
Patrick Mezard
test-execute-bit: skip if execute-bit is not supported
r5495 "$TESTDIR/hghave" execbit || exit 80
Bryan O'Sullivan
See if execute bit is honoured when we go back in time
r5490 hg init
echo a > a
Alexis S. L. Carvalho
repo.status: also compare flags for files in the lookup list....
r6158 hg ci -Am'not executable'
Bryan O'Sullivan
See if execute bit is honoured when we go back in time
r5490
chmod +x a
Alexis S. L. Carvalho
repo.status: also compare flags for files in the lookup list....
r6158 hg ci -m'executable'
Bryan O'Sullivan
See if execute bit is honoured when we go back in time
r5490 hg id
Alexis S. L. Carvalho
repo.status: also compare flags for files in the lookup list....
r6158 echo '% make sure we notice the change of mode if the cached size == -1'
hg rm a
hg revert -r 0 a
hg debugstate
hg st
Bryan O'Sullivan
See if execute bit is honoured when we go back in time
r5490 hg up 0
hg id
test -x a && echo executable -- eek || echo not executable -- whew